Open Bug 1483532 Opened 6 years ago Updated 2 years ago

WPT webdriver client fails to decode null body request if path is not absolute

Categories

(Testing :: geckodriver, defect, P3)

Version 3
defect

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

Details

I had a situation where webdriver client failed with a BadStatusLine failure. After a bit of investigation the problem was that a command missed the starting '/' in the path to indicate an absolute path. Fixing that makes the command work.

Here an example:

> def test_null_parameter_value(session, http):
>     path = "session/{session_id}/frame".format(**vars(session))
>     with http.post(path, None) as response:
>         assert_error(Response.from_http(response), "invalid argument")

Using `/session/{session_id}/frame` makes it work.

I have no idea why the following code can fail given that the path is evaluated after the body has been read:

https://searchfox.org/mozilla-central/rev/2466b82b729765fb0a3ab62f812c1a96a7362478/testing/webdriver/src/server.rs#174-176
Priority: -- → P3
Summary: [webdriver] Failure decoding null body request if path isn't absolute → WPT webdriver client fails to decode null body request if path is not absolute
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.