Opened 19 years ago
Closed 13 years ago
#3240 closed Bug (wontfix)
[patch]Django dispatcher misses some errors
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | yes | Patch needs improvement: | yes | 
| Easy pickings: | no | UI/UX: | no | 
Description
The django BaseHandler misses some errors and also the dispatch mechanism in modpython.py and wsgi.py also allows some errors to pass without being caught. I have a patch which attempts to fix this by
1) factorising out the code for 500 errors
2) moving the code that handles request middleware inside the try block in  BaseHandler.get_resonse
3) factorising out the common dispatch code in modpython/wsgi.py into a BaseHandler.dispatch_request method and at the same time moving the response middleware into a try block in that method.
4) Use the BaseHandler.dispatch_request method in the ModPythonHandler/WSGIHandler call to replace common code.
Attachments (1)
Change History (9)
by , 19 years ago
| Attachment: | base.py-4290.patch added | 
|---|
comment:1 by , 19 years ago
| Summary: | Django dispatcher misses some errors → [patch]Django dispatcher misses some errors | 
|---|
comment:2 by , 19 years ago
| Needs tests: | set | 
|---|---|
| Triage Stage: | Unreviewed → Accepted | 
comment:4 by , 16 years ago
| Patch needs improvement: | set | 
|---|
Lots of changes in core/handlers/* since this patch was generated.  It needs to be redone or perhaps just close the ticket since many other wsgi changes in the past 2 1/2 years have addressed deficiencies.
comment:5 by , 15 years ago
| Severity: | normal → Normal | 
|---|---|
| Type: | defect → Bug | 
comment:8 by , 13 years ago
| Resolution: | → wontfix | 
|---|---|
| Status: | new → closed | 
This ticket boils down to "here's a patch that does X", but the patch is way out of date, and X doesn't appear to be a common problem these days.
I don't think it's relevant any more.
patch against svn rev 4290