Release 3.0.12 has broken most of our templates due to #809
See original GitHub issueDue to changes in https://github.com/thymeleaf/thymeleaf/issues/809 we have a lot of templates that are now broken.
For a lot of our templates we use static members in our Spring controllers for the request names. Hrefs within our templates look like the following:
<a th:href="@{${T(com.test.controller.DashboardController).REQUEST_DASHBOARD}}">
This now results in the following exception:
org.thymeleaf.exceptions.TemplateProcessingException: Instantiation of new objects and access to static classes is forbidden in this context
This pattern is used in 100’s of templates in our code base. We obviously don’t want to completely disable the restricted expression evaluation mode, but is there a way to turn off the restriction of just the static class access?
Thanks, Scott
Issue Analytics
- State:
- Created 3 years ago
- Reactions:35
- Comments:19 (1 by maintainers)
Top GitHub Comments
+1 Many of my templates are broken due to this “minor”?? update. It looks like a breaking change to me and should not have been embedded within a minor version update…
@danielfernandez can you comment on this issue? Seems to be a major problem for many people