Closed
Bug 736633
Opened 14 years ago
Closed 14 years ago
extract only the needed keys from request.GET
Categories
(Cloud Services Graveyard :: Server: Sync, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: rfkelly, Unassigned)
Details
(Whiteboard: [qa-])
Attachments
(1 file)
|
1.12 KB,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
This patch replaces the use of controller.view(**request.GET) with code to explicitly extract only those keys we're interested in. This resolves an issue with newer WebOb releases where request.GET has unicode keys.
Attachment #606772 -
Flags: review?(telliott)
Comment 1•14 years ago
|
||
Comment on attachment 606772 [details] [diff] [review]
patch to explicitly extract GET params
r+ as a viable solution to the core problem, but I don't think it's the correct solution going forward, as we'll find ourselves rewriting the hack over and over.
We should either use a dict here, have a helper function in mozsvc that strips unicode keys from a given list, or do something magic in cornice.
Attachment #606772 -
Flags: review?(telliott) → review+
Updated•14 years ago
|
Whiteboard: [qa-]
| Reporter | ||
Comment 2•14 years ago
|
||
Committed in https://github.com/mozilla-services/server-syncstorage/commit/73e7e0e51bb6f15d2d3c2bcc2f5119a370e880de
I think we only hit this due to legacy code being ported over to pyramid, and the correct solution is "don't pass request.GET directly as **kwargs".
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 3•13 years ago
|
||
Code verified and passed functional tests of Sync 2.0 and AITC 1.0 for a current deploy to qa1.
Status: RESOLVED → VERIFIED
Updated•2 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•