-
Notifications
You must be signed in to change notification settings - Fork 6.1k
ReactiveMethodSecurityConfiguration is initialized prematurely when the context contains a BeanPostProcessor #11596
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
Comments
Thanks @wilkinsona. Is there a sense around the urgency of this issue? I'm not sure I understand the impact very well. |
As far as I can tell, the problem's benign from a Spring Security perspective as I have quite a bit of sympathy for users dealing with the message. It's indicating that something's wrong and potentially won't work as intended so it's right that they should care about it, understand it, and ideally stop it from happening. Given that it's our code that's causing the problem, I think it should be fixed so that we avoid wasting their time diagnosing it, particularly as there's nothing they can do to fix it. They can't even tune their logging levels as they may then miss other messages for a similar problem which isn't benign. |
Thanks @wilkinsona! |
Related to #9845 - (summary: it may be appropriate to add |
I notice that this has been assigned to the 6.0.x milestone. Could you please consider fixing it in all 5.x maintenance branches? |
Good question @wilkinsona. As a team, we have generally assigned bugs to the latest branch where the bug applies and then backport bugs to maintenance branches. It's gotten a little confusing with 5.8 and 6.0 being developed simultaneously. Unfortunately, I can't assign an issue to multiple milestones otherwise I would do so. But we will definitely backport a fix if at all possible. |
Looking at this further, I think that the case is the bean methods should use |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
ReactiveMethodSecurityConfiguration
is initialized prematurely when the context contains aBeanPostProcessor
. This results in the following log message:To Reproduce
Expected behavior
All beans are eligible for post-processing.
Sample
There's a sample Spring Boot application attached to this Spring Boot issue. The code above is a reduced version of that sample that takes Boot out of the picture.
The text was updated successfully, but these errors were encountered: