ViewHandler.renderView should cache/reset ExteranlContext response object
before delegating
-------------------------------------------------------------------------------------------
Key: PORTLETBRIDGE-150
URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-150
Project: MyFaces Portlet Bridge
Issue Type: Bug
Affects Versions: 2.0.0-alpha, 1.0.0-beta
Reporter: Michael Freedman
Assignee: Michael Freedman
The bridge viewhandler by default delegates rendering. However there are
situations where the delegatee will replace the response object in the
ExternalContext and not clean/restore this back to the original if an exception
occurs. As the bridge's viewhandler ignores exceptions coming back from
deletgatees this can lead to ClassCastException farther down the bridge
rendering code as it acquires the response and casts it to the expected Portlet
response. To avoid this the bridge should get/cache the response object before
delegating and then in the catch block (i.e. if exception thrown) restore the
response object if the current one isn't equal to the cached one.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.