Merge ~nansari/django-piston:fix-for-SN-1445 into django-piston:master
Proposed by
Najam Ahmed Ansari
Status: | Rejected |
---|---|
Rejected by: | Najam Ahmed Ansari |
Proposed branch: | ~nansari/django-piston:fix-for-SN-1445 |
Merge into: | django-piston:master |
Diff against target: |
95 lines (+8/-41) 3 files modified
piston/__init__.py (+1/-1) piston/tests.py (+6/-3) piston/utils.py (+1/-37) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu One hackers | Pending | ||
Review via email:
|
Commit message
Fix for SN-1445
Description of the change
This fixes the bug in SCA wherein the SCA resource error handler the clobbers original exception message.
To post a comment you must log in.
Unmerged commits
- 09f52da... by Najam Ahmed Ansari <email address hidden>
Hi, skimming the django-piston and Django code, I suspect a potential cleaner fix might be the removal of django-piston's HttpResponseWrapper (or not using the wrapper when on new enough Django). Have you tried that?
Because there are other places in django piston that set response.content as a string it looks like. Django's HttpResponse handles conversion and the wrapper doesn't. It's possible the wrapper is not needed for the django version we use?