Skip to content

ScriptTemplateView should check template resource [SPR-14729] #19294

Closed
@spring-projects-issues

Description

@spring-projects-issues

Brian Clozel opened SPR-14729 and commented

The ScriptTemplateView class does not override the checkResource method. This means that, when configuring multiple template resolvers within an application, the ScriptTemplateViewResolver won't properly check if a template is available before trying to render it, thus throwing an exception.
The next view resolvers in the chain are then never called.


Affects: 4.2.7, 4.3.2, 5.0 M1

Reference URL: https://stackoverflow.com/questions/39547340/mustache-and-internalviewresolvers-spring-mvc

Backported to: 4.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: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions