PortletViewHandlerImpl.renderView() fails if included entity acquires response
OutputStream
-------------------------------------------------------------------------------------------
Key: JSR301-6
URL: https://issues.apache.org/jira/browse/JSR301-6
Project: MyFaces Portlet Bridge
Issue Type: Bug
Components: General
Affects Versions: 1.0.0-SNAPSHOT
Environment: Any
Reporter: Michael Freedman
Following calling dispatch.include() PortletViewHandlerImpl.renderView()
acquires the Writer from the PortletResponse. This throws an
IllegalStateException (as per the portlet spec) if the included entity used the
response OutputStream. Fix is for the code to catch the exception and create a
Writer by wrapping the portletResponse.getPortletOutputStream with an
OutputStreamWriter. Be sure to create this Writer using the character encoding
of the response. Also javadoc seems to indicate benefits if the
OutputStreamWriter is further wrapped by a BufferedWriter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.