-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add RequestRejectedHandler #7052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@leonard84 Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@rwinch the company cla is currently at our legal department, but you can review the pr already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @leonard84! I provided feedback inline.
Can you please update the documentation to include this new feature?
Another thing to consider is that we need support for XML based users. I'd really appreciate if the ticket includes this support. However, if you are unable to contribute XML namespace support, please create a ticket instead.
web/src/main/java/org/springframework/security/web/FilterChainProxy.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/springframework/security/web/firewall/ClientErrorRequestRejectedHandler.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/FilterChainProxy.java
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/firewall/RequestRejectedHandler.java
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/firewall/DefaultRequestRejectedHandler.java
Show resolved
Hide resolved
...c/main/java/org/springframework/security/web/firewall/ClientErrorRequestRejectedHandler.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/FilterChainProxy.java
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/FilterChainProxy.java
Outdated
Show resolved
Hide resolved
@rwinch I had some open questions in the issue:
|
@rwinch friendly ping, see above |
Thanks for the ping. I'd say we should just expose the handler via a Bean lookup similar to how httpFirewall is looked up in I'm not sure what is happening with the JDK. Our travis build is passing with JDK 8. How did you reproduce this? |
FYI it appears the Travis build was related to gh-7169 which has been resolved |
b05a274
to
f9e25c3
Compare
@leonard84 Thank you for signing the Contributor License Agreement! |
@rwinch please take another look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the ping. I've provided some more feedback inline.
...c/main/java/org/springframework/security/web/firewall/ClientErrorRequestRejectedHandler.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/springframework/security/web/firewall/ClientErrorRequestRejectedHandler.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/firewall/DefaultRequestRejectedHandler.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates and ping @leonard84! I have provided additional feedback inline
@rwinch I've implemented your requests |
8f008d6
to
bf1cc29
Compare
@rwinch ping |
@rwinch ping again |
ce09812
to
9aed413
Compare
@rwinch I've rebased to fix the merge problems and squashed the commits into one |
@rwinch ping |
Ping again - this is a much needed feature :) |
Any update in this thread? This is really needed by community. |
web/src/main/java/org/springframework/security/web/FilterChainProxy.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've provided feedback inline. Also please update tests to be Java based as we don't use Groovy for tests anymore. Finally, please make sure you rebase off the current master.
9aed413
to
2df5af9
Compare
@rwinch I've rebased and converted the Spock tests to the old JUnit 4 style and removed the cglib dependency as byte-buddy is now used to proxy classes. |
2df5af9
to
bcbb1fb
Compare
bcbb1fb
to
41c8a54
Compare
Thanks for the PR @leonard84! This is now merged into master. I've added a bit of polish 0483b3e and support for configuring via XML 4a9fa03.
As a Java project, testing in Groovy made an unnecessary hurtle for contributors. We switched to make contributions easier for our audience. |
…uests
Fixes gh-5007