post_process_request no longer redirects after exception handling
Reported by: |
Ryan J Ollos |
Owned by: |
Ryan J Ollos |
Priority:
|
normal
|
Milestone:
|
1.2.2
|
Component:
|
web frontend
|
Version:
|
|
Severity:
|
normal
|
Keywords:
|
|
Cc:
|
|
Branch:
|
|
Release Notes:
|
The post_process_request method can redirect during exception handling from an exception raised in process_request (fix for regression in r14604).
|
API Changes:
|
|
Internal Changes:
|
|
Prior to Trac 1.2, a redirect in post_process_request
during exception handling would succeed because RequestDone
was re-raised.
r14604 attempted to simplify the complex nested exception handling. RequestDone
is no longer re-raised.
The issue was discovered in #13185.
Change History
(4)
Summary: |
post_process_request can no longer redirect in exception handling → post_process_request no longer redirects after exception handling
|
Release Notes: |
modified (diff)
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Description: |
modified (diff)
|
Proposed fix:
trac/web/main.py
passI'll look at adding a regression test that redirects in
post_process_request
during exception handling. Is there any other case in whichRequestDone
would be raised bypost_process_request
?