Opened 13 years ago
Closed 12 years ago
#18481 closed Bug (fixed)
IOErrors from FILES are not wrapped with UnreadablePostError
Reported by: | KyleMac | Owned by: | nobody |
---|---|---|---|
Component: | HTTP handling | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | andre.cruz@…, hirokiky@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Ticket #17277 wrapped IOErrors when reading the POST body with the custom exception UnreadablePostError in order to make them easily identifiable and thus easily ignored. However the same is not done when reading FILES fails and a raw IOError is still raised.
Outside of AJAX it's failed file uploads that raise the most IOErrors and so UnreadablePostError is not currently very useful.
Attachments (3)
Change History (14)
comment:1 by , 12 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 12 years ago
Cc: | added |
---|
by , 12 years ago
Attachment: | 18481.patch added |
---|
comment:3 by , 12 years ago
Has patch: | set |
---|
comment:4 by , 12 years ago
Cc: | added |
---|
I uploaded a patch about testing for this bug.
The testing was successful.
I applied the edevil's patch and run the testing with Python 2.7.1 and 3.3.
comment:5 by , 12 years ago
I added a new patch that re-raises the exception in the standard format seen on the rest of the codebase.
comment:6 by , 12 years ago
Type: | Uncategorized → Bug |
---|
comment:8 by , 12 years ago
Needs tests: | set |
---|
comment:10 by , 12 years ago
I believe this pull request is the same as the second patch, however, it doesn't have any tests (django/http/request.py is the only modified file).
comment:11 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch for bug