This is an automated email from the ASF dual-hosted git repository.

smolnar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new ae0fe4606 KNOX-2782 - Enhanced Shiro config with the object class of 
invalidRequest (#610)
ae0fe4606 is described below

commit ae0fe4606e56aa5ccccb63714504c6951e3bb1c0
Author: Sandor Molnar <[email protected]>
AuthorDate: Thu Jul 21 12:19:34 2022 +0200

    KNOX-2782 - Enhanced Shiro config with the object class of invalidRequest 
(#610)
---
 .../src/main/java/org/apache/knox/gateway/deploy/impl/ShiroConfig.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/gateway-provider-security-shiro/src/main/java/org/apache/knox/gateway/deploy/impl/ShiroConfig.java
 
b/gateway-provider-security-shiro/src/main/java/org/apache/knox/gateway/deploy/impl/ShiroConfig.java
index 5e60d657a..de4084f41 100644
--- 
a/gateway-provider-security-shiro/src/main/java/org/apache/knox/gateway/deploy/impl/ShiroConfig.java
+++ 
b/gateway-provider-security-shiro/src/main/java/org/apache/knox/gateway/deploy/impl/ShiroConfig.java
@@ -33,6 +33,7 @@ public class ShiroConfig {
     String sectionName;
     String value;
 
+    params.putIfAbsent("main.invalidRequest", 
"org.apache.shiro.web.filter.InvalidRequestFilter");
     params.putIfAbsent("main.invalidRequest.blockSemicolon", "false");
     params.putIfAbsent("main.invalidRequest.blockBackslash", "false");
     params.putIfAbsent("main.invalidRequest.blockNonAscii", "false");

Reply via email to