Opened 17 years ago

Closed 11 years ago

#3240 closed Bug (wontfix)

[patch]Django dispatcher misses some errors

Reported by: robin@… 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)

base.py-4290.patch (8.2 KB) - added by robin@… 17 years ago.
patch against svn rev 4290

Download all attachments as: .zip

Change History (9)

Changed 17 years ago by robin@…

Attachment: base.py-4290.patch added

patch against svn rev 4290

comment:1 Changed 17 years ago by robin@…

Summary: Django dispatcher misses some errors[patch]Django dispatcher misses some errors

comment:2 Changed 17 years ago by Simon G. <dev@…>

Needs tests: set
Triage Stage: UnreviewedAccepted

comment:3 Changed 16 years ago by James Bennett

#3224 was a duplicate, but has an alternate implementation.

comment:4 Changed 14 years ago by Adam Nelson

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 Changed 13 years ago by Łukasz Rekucki

Severity: normalNormal
Type: defectBug

comment:6 Changed 12 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:7 Changed 12 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:8 Changed 11 years ago by Aymeric Augustin

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top