Expose the OOPS ID when the WSGI app produces its own error page

Bug #831748 reported by James Henstridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-oops-wsgi
Fix Released
Low
Robert Collins

Bug Description

If a WSGI app produces its own error pages, it would still be nice if there was some way to deduce the oops ID from that response.

The simplest (although least user friendly option) would be to add the oops ID to the response headers. This should be pretty easy to do when capturing the exception from the proxy start_response() method. For U1, we've been using the "X-Oops-Id" header.

Better would be to expose the oops ID in the error page content. With wsgi-oops this is possible because it exposes the ID of the potential oops report in the WSGI environment. I'm not sure how easy this is to do with python-oops though, prior to creating the report.

A third option would be to insert the oops ID into the page via client side JavaScript. The identifier would need to be stored somewhere that would be visible to the page, which rules out custom HTTP response headers. A short lived cookie might do the trick though, and should be just as easy to insert into the response as other response headers.

Related branches

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 831748] [NEW] Expose the OOPS ID when the WSGI app produces its own error page

x-oops-id is what I added to gpgverifyd, and there is a # TODO to add
this (in the appropriate place) in 0.0.2 of oops-wsgi already, so this
should be very straight forward.

Benji York (benji)
Changed in python-oops-wsgi:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Robert Collins (lifeless) wrote :

I've taken the simplest option; we can investigate the others (like a cookie) in a future iteration.

Changed in python-oops-wsgi:
milestone: none → 0.0.3
assignee: nobody → Robert Collins (lifeless)
status: Triaged → Fix Released
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.