ScriptTemplateView should check template resource [SPR-14729] #19294
Comments
Juergen Hoeller commented Brian Clozel, I've revised this check to avoid exception swallowing (and full template loading) and rather delegate to |
Brian Clozel commented Thanks Juergen Hoeller! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: