[ 
https://issues.apache.org/jira/browse/SLING-6948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16050211#comment-16050211
 ] 

Stefan Seifert commented on SLING-6948:
---------------------------------------

do you have a unit test to prove this problem?

the print writer is backed by the same ByteArrayOutputStream ad used by 
getOutputStream, and both methods getOutput and getOutputAsString use the same 
source of information for it's output.

> HttpServletResponse.getOutput() and getOutputAsStream() 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
>
> 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)

Reply via email to