Skip to content

ScriptTemplateView should close the template InputStream [SPR-13445] #18025

@spring-projects-issues

Description

@spring-projects-issues

Sébastien Deleuze opened SPR-13445 and commented

Running some benchmarks on spring-boot-sample-web-handlebars demo application then running lsof command line tool shows a lot of template files opened.

ScriptTemplateView#getTemplate() should close the template InputStream properly, since according to its Javadoc, StreamUtils#copyToString leaves the stream open when done.


Affects: 4.2.1

Referenced from: commits ff02ad4

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions