-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Bean Conflict Between webSocketAuthorizationManagerPostProcessor
and objectPostProcessor
in Spring Security Configuration
#16299
Labels
Comments
waileong
added
status: waiting-for-triage
An issue we've not yet triaged
type: bug
A general bug
labels
Dec 18, 2024
I have the same problem but the description is a bit different (it complains on
|
Any solution for this? In version 6.4.1, these two beans were also creating but did not cause such an exception. |
@kalgon Same here with versions:
|
@ngocnhan-tran1996 could you assist in this issue. hope it's after your changes #16113 |
Is there any known workaround for this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
The application fails to start due to a conflict between two beans required by the declare Bean
SecurityFilterChain
. The method expects a single bean, but two candidates are found:webSocketAuthorizationManagerPostProcessor
Defined in:
WebSocketObservationConfiguration.class
objectPostProcessor
Defined in:
ObjectPostProcessorConfiguration.class
This conflict causes Spring to throw an error during startup, indicating an inability to resolve the ambiguity.
This issue occurs in Spring Security 6.4.2.
To Reproduce
@EnableWebSocketSecurity
.APPLICATION FAILED TO START
Expected behavior
The application should start successfully without bean injection conflicts.
Sample
A link to a GitHub repository with a minimal, reproducible sample.
The text was updated successfully, but these errors were encountered: