[jira] [Resolved] (SLING-6948) HttpServletResponse.getOutput() and getOutputAsString() return different information

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Resolved] (SLING-6948) HttpServletResponse.getOutput() and getOutputAsString() return different information

JIRA jira@apache.org

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

Stefan Seifert resolved SLING-6948.
-----------------------------------
       Resolution: Fixed
         Assignee: Stefan Seifert
    Fix Version/s: Servlet Helpers 1.0.2
                   Servlet Helpers 1.1.2

Completed: At revision: 1798871  (1.1.x)
Completed: At revision: 1798872  (1.0.x)

> HttpServletResponse.getOutput() and getOutputAsString() return different information
> ------------------------------------------------------------------------------------
>
>                 Key: SLING-6948
>                 URL: https://issues.apache.org/jira/browse/SLING-6948
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: Servlet Helpers 1.1.0
>            Reporter: Robert Munteanu
>            Assignee: Stefan Seifert
>             Fix For: Servlet Helpers 1.1.2, Servlet Helpers 1.0.2
>
>
> HttpServletResponse.getOutput and getOutputAsString are backed by ResponseBodySupport. That class holds both a ServletOutputStream and a PrintWriter, which are not kept in sync. getOutput uses the ServletOutputStream and getOutputAsString uses the PrintWriter.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Loading...