This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch WW-5627-cookie-authorization in repository https://gitbox.apache.org/repos/asf/struts.git
commit 87803213f148405c97c0f5f66b5e25cb02ad0cd3 Author: Lukasz Lenart <[email protected]> AuthorDate: Sat May 9 19:19:22 2026 +0200 WW-5627 wire OgnlParameterAllowlister in StrutsParameterAnnotationTest fixture --- .../interceptor/parameter/StrutsParameterAnnotationTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/test/java/org/apache/struts2/interceptor/parameter/StrutsParameterAnnotationTest.java b/core/src/test/java/org/apache/struts2/interceptor/parameter/StrutsParameterAnnotationTest.java index 803e0dad5..8ec445253 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/parameter/StrutsParameterAnnotationTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/parameter/StrutsParameterAnnotationTest.java @@ -84,6 +84,12 @@ public class StrutsParameterAnnotationTest { this.parameterAuthorizer = parameterAuthorizer; parametersInterceptor.setParameterAuthorizer(parameterAuthorizer); + var parameterAllowlister = new OgnlParameterAllowlister(); + parameterAllowlister.setOgnlUtil(ognlUtil); + parameterAllowlister.setProxyService(proxyService); + parameterAllowlister.setThreadAllowlist(threadAllowlist); + parametersInterceptor.setParameterAllowlister(parameterAllowlister); + NotExcludedAcceptedPatternsChecker checker = mock(NotExcludedAcceptedPatternsChecker.class); when(checker.isAccepted(anyString())).thenReturn(IsAccepted.yes("")); when(checker.isExcluded(anyString())).thenReturn(IsExcluded.no(Set.of()));
