2014-01-23 09:55:03 |
Michael Nelson |
description |
Steps to reproduce:
* GET https://sc.staging.ubuntu.com/api/2.0/click-user-can-download/ (ie. no query data)
Expected result:
* BadRequest returned
Actual result:
* Oops [1]
The issue is that piston is using django internals (HttpResponse._get_content) which disappeared with 1.5. It may be fixed upstream [2].
[1] https://oops.canonical.com/?oopsid=OOPS-fdb3ec6932eb41de81119ddf81ca7b64 , traceback for posterity: https://pastebin.canonical.com/103381/
[2] http://stackoverflow.com/questions/16294518/httpresponse-has-no-attribute-get-content |
Steps to reproduce:
* GET https://sc.staging.ubuntu.com/api/2.0/click-user-can-download/ (ie. no query data)
Expected result:
* BadRequest returned
Actual result:
* Oops [1]
The issue is that the system piston is being used, which uses django internals (HttpResponse._get_content) which are no longer there with Django 1.5. It has been fixed in the sourcecode version of piston that we have deployed, but the system version is imported before we have setup our import paths in the deploy config (you can reproduce the issue in dev [2]).
[1] https://oops.canonical.com/?oopsid=OOPS-fdb3ec6932eb41de81119ddf81ca7b64 , traceback for posterity: https://pastebin.canonical.com/103381/
[2] https://pastebin.canonical.com/103460/ |
|