Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IEDriver] Error: No property named 'capabilities' or 'desiredCapabilities' found in new session request body. if Content-Length is not set #7986

Closed
mucsi96 opened this issue Feb 2, 2020 · 0 comments
Labels

Comments

@mucsi96
Copy link

mucsi96 commented Feb 2, 2020

馃悰 Bug Report

If Content-Length header is not set in request then IEDriver is not able to process the request. The other problem is that the check for Content-Lenght is case sensitive. This is not inline with HTTP specification.

I am happy to contribute the improvements if you agree with fixing this. But my C++ experience is very limited :(

Environment

OS: Windows 10
Browser: Internet Explorer
Browser version: 11
Browser Driver version: 3.14.0.0 (64-bit)
Language Bindings version: NodeJS

@ghost ghost added the needs-triaging label Feb 2, 2020
@mucsi96 mucsi96 changed the title [IEDriver] No property named 'capabilities' or 'desiredCapabilities' found in new session request body. if Content-Length is not set [IEDriver] Error: No property named 'capabilities' or 'desiredCapabilities' found in new session request body. if Content-Length is not set Feb 2, 2020
reidj32 added a commit to reidj32/selenium that referenced this issue Apr 24, 2020
According to RFC 2616 and 7230, headers names are case insensitive.

When creating a new session, the webdriver server is checking the
request for a case sensitive Content-Type header. This causes the body
to be empty on session creation and will result in the IEDriverServer
complaining about missing capabilities.

This change will search for the Content-Type in a case insensitive
manner before capturing the value of the header.

Fixes SeleniumHQ#7986
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants