Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0-alpha-2
-
None
-
Any
Description
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.