Closed Bug 775216 Opened 12 years ago Closed 12 years ago

Storage Server: Percent decode query string parameters

Categories

(Cloud Services :: Firefox: Common, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla17

People

(Reporter: gps, Assigned: gps)

Details

Attachments

(1 file)

The JS storage server does not percent decode query string parameters. As a result, clients that percent encoded query strings parameters containing commas break the server. See also bug 775208.
Trivial patch. Pretty sure this is the only place in the server where we split on commas. The xpcshell tests for the server are pretty sparse and most functionality is tested via the Python functional tests. We also have redundant coverage via the client xpcshell tests. So, I don't think it is necessary to explicitly verify that query strings without percent encoding work. mconnor receives review due to snarky comment directed towards me on IRC ;)
Assignee: nobody → gps
Status: NEW → ASSIGNED
Attachment #643504 - Flags: review?(mconnor)
Comment on attachment 643504 [details] [diff] [review] Percent decode query string components Seeking quicker review.
Attachment #643504 - Flags: review?(mconnor) → review?(rnewman)
Comment on attachment 643504 [details] [diff] [review] Percent decode query string components Review of attachment 643504 [details] [diff] [review]: ----------------------------------------------------------------- ::: services/common/storageserver.js @@ +620,1 @@ > } You wanna throw for ?foo=bar=baz&noo=bar (i.e., chunk.length > 2)?
Attachment #643504 - Flags: review?(rnewman) → review+
https://hg.mozilla.org/services/services-central/rev/9118f77e3dbd Did not address review comment because I think URL parsers should be lenient and allow extra unescaped equals signs.
Whiteboard: [fixed in services]
Target Milestone: --- → mozilla17
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in services]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: