Closed
Bug 775216
Opened 12 years ago
Closed 12 years ago
Storage Server: Percent decode query string parameters
Categories
(Cloud Services :: Firefox: Common, defect)
Cloud Services
Firefox: Common
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla17
People
(Reporter: gps, Assigned: gps)
Details
Attachments
(1 file)
2.32 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•12 years ago
|
||
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 | ||
Comment 2•12 years ago
|
||
Comment on attachment 643504 [details] [diff] [review]
Percent decode query string components
Seeking quicker review.
Attachment #643504 -
Flags: review?(mconnor) → review?(rnewman)
Comment 3•12 years ago
|
||
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+
Assignee | ||
Comment 4•12 years ago
|
||
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
Assignee | ||
Comment 5•12 years ago
|
||
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.
Description
•