cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Kossakowski (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COCOON-2237) Buffering of response does not work correctly in SSF
Date Thu, 14 Aug 2008 08:49:44 GMT

     [ https://issues.apache.org/jira/browse/COCOON-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Grzegorz Kossakowski closed COCOON-2237.
----------------------------------------

    Resolution: Fixed

Fixed in r685544.

> Buffering of response does not work correctly in SSF
> ----------------------------------------------------
>
>                 Key: COCOON-2237
>                 URL: https://issues.apache.org/jira/browse/COCOON-2237
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Servlet service framework
>    Affects Versions: 2.2
>            Reporter: Grzegorz Kossakowski
>            Assignee: Grzegorz Kossakowski
>             Fix For: 2.2
>
>
> Class HttpServletResponseBufferingWrapper contains subtle bug when it comes to buffering
of response. It relies its behaviour on HTTP status code and buffers only if it was set to
404.
> However, in following scenario current implementation won't work:
> 1. stream = response.getOutputStream() //non buffering output stream is returned because
by default status code is set to 200
> 2. response.setStatusCode(404)
> 3. stream.write() //write details about error, this is going to be written to response
because non-buffering output stream is in use
> 4. response.resetBufferedResponse() //this fails with IllegalStateException

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


Mime
View raw message