Strip off jsonp jquery arguments so they don't interfere with the results query.
ClosedPublic

Authored by ralph on Sep 8 2014, 8:05 PM.

Details

Summary

More problems found with the JSONP stuff (which will be used by bodhi2 some day).

Take these two URLs, for instance:

The first one works as expected The second one gets the jsonp format
correctly wrapped around it, but the 'callback' argument is retained and is
gumming up the normal results processing in api_v1.py.

This patch strips it out of the flask.request.args werkzeug MultiDict.

Test Plan

Try to curl the second URL.

Diff Detail

Repository
rRSDB resultsdb
Branch
more-jsonp-bugfixes
Lint
No Linters Available
Unit
No Unit Test Coverage
ralph retitled this revision from to Strip off jsonp jquery arguments so they don't interfere with the results query..Sep 8 2014, 8:05 PM
ralph updated this object.
ralph edited the test plan for this revision. (Show Details)
ralph added reviewers: tflink, jskladan.
jskladan accepted this revision.Sep 9 2014, 7:50 AM
This revision is now accepted and ready to land.Sep 9 2014, 7:50 AM
tflink accepted this revision.Sep 9 2014, 2:52 PM
ralph closed this revision.Sep 9 2014, 8:23 PM