You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ji...@apache.org on 2004/04/11 06:19:43 UTC

[jira] Resolved: (JS2-7) o.a.j.aggregator.impl.HttpBufferedResponse.getOutputStream() wraps the wrong writer

Message:

   The following issue has been resolved as FIXED.

   Resolver: David Sean Taylor
       Date: Sat, 10 Apr 2004 9:17 PM

patch applied
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JS2-7

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JS2-7
    Summary: o.a.j.aggregator.impl.HttpBufferedResponse.getOutputStream() wraps the wrong writer
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: FIXED

    Project: Jetspeed 2
   Versions:
             2.0-dev/cvs

   Assignee: David Sean Taylor
   Reporter: Ate Douma

    Created: Wed, 7 Apr 2004 7:10 AM
    Updated: Sat, 10 Apr 2004 9:17 PM
Environment: WindowsXP, J2SE1.4.2_03, Tomcat 4.1.29

Description:
getOutputStream() wraps the wrapped ServletResponse.getWriter() instead of its own writer.

Effect: when a portlet includes a resource fully handled by the application server (like an html page) AND no output has been written by the portlet itself yet using RenderResponse.getWriter() the output isn't cached before the page rendering is complete but put out by the application server (Tomcat) immediately with as result a mixed up page layout.

Fix.
Replace:
            wrappedStream = new PrintWriterServletOutputStream(getResponse().getWriter());
with:
            wrappedStream = new PrintWriterServletOutputStream(writer);

(I will attach a patch file in a minute)

Ate




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org