python-oops-wsgi's proxy start_response callback does not handle a third argument.

Bug #830931 reported by James Henstridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-oops-wsgi
Invalid
Undecided
Unassigned

Bug Description

According to the WSGI spec, the start_response callback should accept three arguments:

"""
The second parameter passed to the application object is a callable of the form start_response(status, response_headers, exc_info=None). (As with all WSGI callables, the arguments must be supplied positionally, not by keyword.) The start_response callable is used to begin the HTTP response, and it must return a write(body_data) callable (see the Buffering and Streaming section, below).
"""

This means that if a WSGI application tries to report an error to its container (rather than just erroring out completely), that error gets lost and replaced with "TypeError: oops_start_response() takes exactly 2 arguments (3 given)".

Instead, I would expect oops-wsgi to publish an OOPS report based on exc_info and let the application display its error page.

Revision history for this message
James Henstridge (jamesh) wrote :

wgrant pointed out to me that r9 fixes this bug.

Changed in python-oops-wsgi:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.