kusalk commented on code in PR #1243:
URL: https://github.com/apache/struts/pull/1243#discussion_r1983336901
##########
core/src/main/java/org/apache/struts2/ognl/ThreadAllowlist.java:
##########
@@ -34,6 +36,15 @@ public class ThreadAllowlist {
private final ThreadLocal<Set<Class<?>>> allowlist = new ThreadLocal<>();
+ /**
+ * @since 7.1.0
+ */
+ public void allowClassHierarchy(Class<?> clazz) {
Review Comment:
New allowlisting helper method - generally we always want to allowlist the
whole hierarchy. Otherwise, methods on the superclasses may not be callable!
Note that methods on `Object.class` are still blocked by the exclusion list.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]