ExceptionHandler not redirecting to error page for exceptions thrown during
listeners attached to render response phase
-----------------------------------------------------------------------------------------------------------------------
Key: MYFACES-2355
URL: https://issues.apache.org/jira/browse/MYFACES-2355
Project: MyFaces Core
Issue Type: Bug
Components: JSR-314
Affects Versions: 2.0.0-alpha
Reporter: Michael Concini
Assignee: Michael Concini
Priority: Minor
If an exception is thrown by a listener attached to the render response phase,
the exception handler is unable to redirect to the error handler page as with
other lifecycle phases.
The reason for this is that the render response execution has already flushed
the response buffer, marking the response as committed. This can be resolved
for before phase listeners by simply not rendering the response. For after
phase listeners we may have to be content with logging the exception. I'll go
ahead and check in the fix for before phase listeners and leave the issue open
for now until a resolution can be reached for after phase listeners (or if its
better to just leave it as is in that case).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.