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)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rfkelly, Unassigned)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

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 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+
Whiteboard: [qa-]
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
Code verified and passed functional tests of Sync 2.0 and AITC 1.0 for a current deploy to qa1.
Status: RESOLVED → VERIFIED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: