Uploaded image for project: 'MyFaces Portlet Bridge'
  1. MyFaces Portlet Bridge
  2. PORTLETBRIDGE-2

PortletViewHandlerImpl.renderView() fails if included entity acquires response OutputStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-alpha-2
    • 1.0.0-alpha
    • Impl
    • 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.

      Attachments

        Activity

          People

            darkarena Scott O'Bryan
            mike_freedman Michael Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: