You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a recent upgrade of Spring Boot and Thymeleaf to version 3.1.1 and 3.1.2, respectively, we are suddenly experiencing exceptions of the following type in several Thymeleaf templates that worked fine before the upgrade:
org.springframework.expression.EvaluationException: Accessing member 'isEmpty' is forbidden for type 'class java.util.ImmutableCollections$ListN' in Thymeleaf expressions.
Blocked classes are: [...]. Allowed classes are: [...].
The collection causing this issue results from a standard Java Streams .toList() method invocation.
Is there a way to configure the list of allowed classes to avoid these issues with results of core library methods?
The text was updated successfully, but these errors were encountered:
d4span
changed the title
Thymeleaf no longer processes results from standard Java stream methods
Thymeleaf no longer processes results of standard Java stream methods
Aug 21, 2023
After a recent upgrade of Spring Boot and Thymeleaf to version 3.1.1 and 3.1.2, respectively, we are suddenly experiencing exceptions of the following type in several Thymeleaf templates that worked fine before the upgrade:
The collection causing this issue results from a standard Java Streams .toList() method invocation.
Is there a way to configure the list of allowed classes to avoid these issues with results of core library methods?
The text was updated successfully, but these errors were encountered: