You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2017/06/15 19:52:02 UTC

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

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

Stefan Seifert updated SLING-6948:
----------------------------------
    Summary: HttpServletResponse.getOutput() and getOutputAsString() return different information  (was: HttpServletResponse.getOutput() and getOutputAsStream() return different information)

> 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
>
> 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)