-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Reject effectively private handler methods on CGLIB proxied controllers #35352
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
Signed-off-by: yongjunhong <yongjunh@apache.org>
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.
Couldn't this be checked in RequestMappingHandlerMapping
when request mappings are being initialized?
It would avoid repeating that on every call.
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 requested a few changes.
Please also take Rossen's comment into account.
spring-web/src/main/java/org/springframework/web/method/support/InvocableHandlerMethod.java
Outdated
Show resolved
Hide resolved
spring-web/src/main/java/org/springframework/web/method/support/InvocableHandlerMethod.java
Outdated
Show resolved
Hide resolved
...ng-web/src/test/java/org/springframework/web/method/support/InvocableHandlerMethodTests.java
Outdated
Show resolved
Hide resolved
...ng-web/src/test/java/org/springframework/web/method/support/InvocableHandlerMethodTests.java
Outdated
Show resolved
Hide resolved
I'm currently traveling, so I should be able to work on it around Wednesday or Thursday this week. |
Signed-off-by: yongjunhong <yongjunh@apache.org>
Signed-off-by: yongjunhong <yongjunh@apache.org>
Signed-off-by: yongjunhong <yongjunh@apache.org>
Please take a look :) |
If you have some time, I’d really appreciate it if you could take a look at this PR as well. 🙇🏻♂️🙇🏻♂️ It’s similar to the this PR, focusing on the access modifiers and proxies!! |
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 making the requested changes. It's looking better. 👍
I've requested a few additional changes in this follow up review.
Also, please make analogous changes to org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping
and org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMappingTests
.
...java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java
Outdated
Show resolved
Hide resolved
...java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java
Show resolved
Hide resolved
...ng-web/src/test/java/org/springframework/web/method/support/InvocableHandlerMethodTests.java
Show resolved
Hide resolved
...java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java
Show resolved
Hide resolved
...java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java
Outdated
Show resolved
Hide resolved
...org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java
Outdated
Show resolved
Hide resolved
...org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java
Outdated
Show resolved
Hide resolved
...org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java
Outdated
Show resolved
Hide resolved
...org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java
Outdated
Show resolved
Hide resolved
...org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java
Outdated
Show resolved
Hide resolved
…c/method/annotation/RequestMappingHandlerMapping.java Co-authored-by: Sam Brannen <104798+sbrannen@users.noreply.github.com> Signed-off-by: Yongjun Hong <kevin0928@naver.com>
…c/method/annotation/RequestMappingHandlerMappingTests.java Co-authored-by: Sam Brannen <104798+sbrannen@users.noreply.github.com> Signed-off-by: Yongjun Hong <kevin0928@naver.com>
…c/method/annotation/RequestMappingHandlerMappingTests.java Co-authored-by: Sam Brannen <104798+sbrannen@users.noreply.github.com> Signed-off-by: Yongjun Hong <kevin0928@naver.com>
…c/method/annotation/RequestMappingHandlerMappingTests.java Co-authored-by: Sam Brannen <104798+sbrannen@users.noreply.github.com> Signed-off-by: Yongjun Hong <kevin0928@naver.com>
…c/method/annotation/RequestMappingHandlerMappingTests.java Co-authored-by: Sam Brannen <104798+sbrannen@users.noreply.github.com> Signed-off-by: Yongjun Hong <kevin0928@naver.com>
…c/method/annotation/RequestMappingHandlerMappingTests.java Co-authored-by: Sam Brannen <104798+sbrannen@users.noreply.github.com> Signed-off-by: Yongjun Hong <kevin0928@naver.com>
Signed-off-by: yongjunhong <yongjunh@apache.org>
Signed-off-by: yongjunhong <yongjunh@apache.org>
…related tests Signed-off-by: yongjunhong <yongjunh@apache.org>
Signed-off-by: yongjunhong <yongjunh@apache.org>
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 making all of the requested changes. 👍
I think this PR looks pretty good now, and I'll review it once more in detail before merging it into main
.
The requested change has already been made.
fixes #30938