Skip to content

Conversation

@smolnar82
Copy link
Contributor

@smolnar82 smolnar82 commented Jul 20, 2022

What changes were proposed in this pull request?

In order to make the user-auth-test KnoxCLI command work after the 1.6 Shiro upgrade, I'd to add the invalidRequest filter's object class (org.apache.shiro.web.filter.InvalidRequestFilter) into the main section in the generated shiro.ini. Without that change, an error was thrown (see the corresponding JIRA).

How was this patch tested?

Ran the GatewayShiroAuthTest that covers use-cases for Shiro LDAP authentication including a valid service URL with a semicolon (;jsessionid=OI24B9ASD7BSSD).

Screenshot 2022-07-20 at 11 20 44

Other than this I made sure the user-auth-test KnoxCLI command works:

$ bin/knoxcli.sh user-auth-test --cluster sandbox --u admin --p admin-password --d
LDAP authentication successful!

@smolnar82 smolnar82 self-assigned this Jul 20, 2022
@smolnar82 smolnar82 merged commit ae0fe46 into apache:master Jul 21, 2022
@smolnar82 smolnar82 deleted the KNOX-2782 branch July 21, 2022 10:19
stoty pushed a commit to stoty/knox that referenced this pull request May 14, 2024
… invalidRequest (apache#610)

Change-Id: Ic0eb422e5aa9603ad49d52f0bcd1b331666d537b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant