« Return to Thread: [jira] Created: (PLUTO-570) PortalServletResponse doesn't implement getOutputsream()

[jira] Created: (PLUTO-570) PortalServletResponse doesn't implement getOutputsream()

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View in Thread

PortalServletResponse doesn't implement getOutputsream()
--------------------------------------------------------

                 Key: PLUTO-570
                 URL: https://issues.apache.org/jira/browse/PLUTO-570
             Project: Pluto
          Issue Type: Bug
    Affects Versions: 2.0.0
         Environment: Weblogic 10.3
            Reporter: Khaled Tlili


PortalServletResponse doesn't implement getOutputsream(). As weblogic call getOutpustream() and not getWriter() when a the portlet dispatch to a JSP then the output is broken. In addition to that the output of the portlet can't be catched:

Example:
....
try {
            container.doRender(window, portalRequest, portalResponse);
        } catch (Exception th) {
            logger.error("Error while rendering portlet", th);
        }
        final String portletRendering = portalResponse.getInternalBuffer().getBuffer().toString();
....

with weblogic portletRendering  is empty


So, PortletSerletResponse should be:

public class PortalServletResponse ...
    ...

    @Override
    public ServletOutputStream getOutputStream() throws IOException {
        return new PrintWriterServletOutputStream(getWriter(), "UTF-8");
    }

  ....
}


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

 « Return to Thread: [jira] Created: (PLUTO-570) PortalServletResponse doesn't implement getOutputsream()