You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Robin Wyles (JIRA)" <ji...@apache.org> on 2008/07/09 11:27:31 UTC

[jira] Created: (COCOON-2217) HttpServletResponseBufferingWrapper throws NPE when response body is empty

HttpServletResponseBufferingWrapper throws NPE when response body is empty
--------------------------------------------------------------------------

                 Key: COCOON-2217
                 URL: https://issues.apache.org/jira/browse/COCOON-2217
             Project: Cocoon
          Issue Type: Bug
          Components: - Servlet service framework
    Affects Versions: 2.2, 2.2-dev (Current SVN)
            Reporter: Robin Wyles
            Priority: Minor
             Fix For: 2.2-dev (Current SVN)


When the response body is empty, e.g. when a FileNotFoundException is thrown by a generator, or servlet service call returns an empty response, a NPE is thrown by HttpServletResponseBufferingWrapper.  

Patch adds a null check on HttpServletResponseBufferingWrapper's outputStream in the flushBufferedResponse method.


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


[jira] Updated: (COCOON-2217) HttpServletResponseBufferingWrapper throws NPE when response body is empty

Posted by "Robin Wyles (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Wyles updated COCOON-2217:
--------------------------------

    Attachment: HttpServletResponseBufferingWrapper-empty-response.patch

Patch adds a null check on HttpServletResponseBufferingWrapper's outputStream in the flushBufferedResponse method.

> HttpServletResponseBufferingWrapper throws NPE when response body is empty
> --------------------------------------------------------------------------
>
>                 Key: COCOON-2217
>                 URL: https://issues.apache.org/jira/browse/COCOON-2217
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Servlet service framework
>    Affects Versions: 2.2, 2.2-dev (Current SVN)
>            Reporter: Robin Wyles
>            Priority: Minor
>             Fix For: 2.2-dev (Current SVN)
>
>         Attachments: HttpServletResponseBufferingWrapper-empty-response.patch
>
>
> When the response body is empty, e.g. when a FileNotFoundException is thrown by a generator, or servlet service call returns an empty response, a NPE is thrown by HttpServletResponseBufferingWrapper.  
> Patch adds a null check on HttpServletResponseBufferingWrapper's outputStream in the flushBufferedResponse method.

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


[jira] Closed: (COCOON-2217) HttpServletResponseBufferingWrapper throws NPE when response body is empty

Posted by "Robin Wyles (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COCOON-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Wyles closed COCOON-2217.
-------------------------------

    Resolution: Fixed

Fixed in r685544

> HttpServletResponseBufferingWrapper throws NPE when response body is empty
> --------------------------------------------------------------------------
>
>                 Key: COCOON-2217
>                 URL: https://issues.apache.org/jira/browse/COCOON-2217
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Servlet service framework
>    Affects Versions: 2.2, 2.2-dev (Current SVN)
>            Reporter: Robin Wyles
>            Priority: Minor
>             Fix For: 2.2-dev (Current SVN)
>
>         Attachments: HttpServletResponseBufferingWrapper-empty-response.patch
>
>
> When the response body is empty, e.g. when a FileNotFoundException is thrown by a generator, or servlet service call returns an empty response, a NPE is thrown by HttpServletResponseBufferingWrapper.  
> Patch adds a null check on HttpServletResponseBufferingWrapper's outputStream in the flushBufferedResponse method.

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