-
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
XML configuration with multiple security:http register multiple requestDataValueProcessor #6423
Comments
Thank you for the report. Can you please provide a minimal and complete sample to reproduce the problem? |
Here you are.... |
You are right that the You can work around this by providing the following setting |
Pull request for issue: |
thx for helping. I've never created a pull request before. |
@mtraut Please link your pull request with Issue. |
I have none - as i said, i hesitated to start as i've not made it before. You are the one and only... |
1. CsrfBeanDefinitionParser registers requestDataValueProcessor if not already registered 2. Created Tests in CsrfBeanDefinitionParserTests Fixes: spring-projectsgh-6423
1. CsrfBeanDefinitionParser registers requestDataValueProcessor if not already registered 2. Created Tests in CsrfBeanDefinitionParserTests Fixes: gh-6423
1. CsrfBeanDefinitionParser registers requestDataValueProcessor if not already registered 2. Created Tests in CsrfBeanDefinitionParserTests Fixes: gh-6423
1. CsrfBeanDefinitionParser registers requestDataValueProcessor if not already registered 2. Created Tests in CsrfBeanDefinitionParserTests Fixes: gh-6423
1. CsrfBeanDefinitionParser registers requestDataValueProcessor if not already registered 2. Created Tests in CsrfBeanDefinitionParserTests Fixes: gh-6423
Summary
We use multiple XML configuration for different realms. If CSRF is not disabled, the application startup fails beause of multiple registrations of requestDataValueProcessor bean.
Actual Behavior
see org.springframework.security.config.http.CsrfBeanDefinitionParser.parse()
unconditionally registers bean
Expected Behavior
CsrfBeanDefinitionParser should check presence?
Version
version 5.1.3
Sample
This will not start
The text was updated successfully, but these errors were encountered: