Closed
Description
Roberto Franchini opened SPR-11411 and commented
The method renderMergedOutputModel should not close the HttpServletResponse output stream.
The called utility method
FileCopyUtils.copy(bos.toByteArray(), response.getOutputStream());
closes the stream avoiding other output filters adding more informations.
Use streamUtils instead
For example, if the view is invoked by a url under security, the session id cookie isn't sent back to the client.
Affects: 3.1.2, 4.0.1
Issue Links:
- Consistently avoid close() call on Servlet OutputStream [SPR-11413] #16040 Consistently avoid close() call on Servlet OutputStream
- MarshallingView should avoid temporary byte array when copying to response [SPR-11646] #16269 MarshallingView should avoid temporary byte array when copying to response
Referenced from: commits 648245b, b223e6e
Backported to: 3.2.8