-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Add support checking same security matchers #16186
Conversation
c81f19e
to
7fb98ba
Compare
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, @franticticktick! I've left my feedback inline.
Also, if you want to add #16213 to this PR as a separate commit, I think that makes sense.
config/src/main/java/org/springframework/security/config/http/DefaultFilterChainValidator.java
Outdated
Show resolved
Hide resolved
config/src/main/java/org/springframework/security/config/http/DefaultFilterChainValidator.java
Outdated
Show resolved
Hide resolved
config/src/main/java/org/springframework/security/config/http/DefaultFilterChainValidator.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/util/matcher/OrRequestMatcher.java
Show resolved
Hide resolved
@franticticktick, given #16249, I'd like to change my recommendation as that ticket would remove the notion of "after-any" unreachability. Thus, the idea of having some kind of validation reporter may be more brittle than I had first considered (since one of the handlers could be immediately deprecated). Instead, I think a new implementation of |
Good points, @franticticktick. My thought is that the improvements to Then, there should be another commit that solves #15982 which includes improving the matchers as well as adding the check to How does that sound? |
4967fe5
to
5f1ee19
Compare
@jzheaux thanks for the recommendations, I added tests for |
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 update, @franticticktick! I've left feedback inline.
web/src/main/java/org/springframework/security/web/UnreachableFilterChainException.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/UnreachableFilterChainException.java
Outdated
Show resolved
Hide resolved
config/src/main/java/org/springframework/security/config/http/DefaultFilterChainValidator.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/UnreachableFilterChainException.java
Outdated
Show resolved
Hide resolved
...ingframework/security/config/annotation/web/configuration/WebSecurityConfigurationTests.java
Outdated
Show resolved
Hide resolved
0e5bfa4
to
c3ce019
Compare
c3ce019
to
4a1d129
Compare
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 update, @franticticktick, it looks good.
My apologies there is one item I forgot, please see my inline comment for details.
web/src/main/java/org/springframework/security/web/UnreachableFilterChainException.java
Show resolved
Hide resolved
4a1d129
to
6d4bd07
Compare
@jzheaux thanks for your feedback, everything is done. |
4724f16
to
6088267
Compare
Thanks, @franticticktick. Another very helpful PR! |
Closes gh-15982