ScriptTemplateView should check template resource [SPR-14729] #19294
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Brian Clozel opened SPR-14729 and commented
The
ScriptTemplateView
class does not override thecheckResource
method. This means that, when configuring multiple template resolvers within an application, theScriptTemplateViewResolver
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
The text was updated successfully, but these errors were encountered: