New issue
Advanced search Search tips

Issue 598150 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Don't parse a single & as an empty parameter in "Query String Parameters"

Reported by l446240525@gmail.com, Mar 26 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2689.0 Safari/537.36

Steps to reproduce the problem:
I don't know if this is an intended behaviour or a bug.

What is the expected behavior?

What went wrong?
.

Did this work before? No 

Chrome version: 51.0.2689.0  Channel: n/a
OS Version: OS X 10.10.4
Flash Version: Shockwave Flash 21.0 r0
 
232.png
115 KB View Download
Cc: paulir...@chromium.org
Labels: -OS-Mac OS-All
Owner: jonathan.garbee@chromium.org
Status: Assigned (was: Unconfirmed)
Confirmed, I'll take a look at fixing this.
Whats the spec say about starting the query params with a &? I think technically that's an empty param. 

I kinda think we'd want to show the user that, as it seems like a mistake.
Ref spec: I am unable to find how it *directly* addresses this problem.

However, talking it over just now we decided that it could be useful for debugging purposes to show empty items (primarily thinking about poorly developed backends.) However, the UX we currently have is non-intuitive.

Attached is an example of what we could do instead to let developers know empty pairs are being sent.
Selection_005.png
8.3 KB View Download
Doing a little more digging around, it looks as if *anything* after the query parameter goes until you hit a hashtag.

Ref: http://stackoverflow.com/a/4557763/2604748

Therefore, it is conceivable (that for some reason) an application may depend upon empty query parameters for something. Best show that these do exist compared to outright ignoring them in parsing, just in case.
Status: Started (was: Assigned)
Status: Fixed (was: Started)

Sign in to add a comment