Skip to content

MarshallingView should not close response output stream [SPR-11411] #16038

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 648245b, b223e6e

Backported to: 3.2.8

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions