Skip to content

Application context fails to load: Couldn't find FilterChainProxy #14370

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

Closed
agrgat opened this issue Dec 23, 2023 · 3 comments
Closed

Application context fails to load: Couldn't find FilterChainProxy #14370

agrgat opened this issue Dec 23, 2023 · 3 comments
Assignees
Labels
in: web An issue in web modules (web, webmvc) type: bug A general bug
Milestone

Comments

@agrgat
Copy link

agrgat commented Dec 23, 2023

Describe the bug
Application context fails to load after upgrading from spring boot version 3.1.5 to 3.2.1 with error message: “Couldn't find FilterChainProxy” in a list of Filters.

SecurityConfig is defined as follows:

@Configuration @EnableWebSecurity(debug = true) class SecurityConfig { @Bean fun filterChain(http: HttpSecurity): SecurityFilterChain {…} }

The issue is in the debug flag of the @EnableWebSecurity annotation. If the debug flag is set to true, the Filter is instantiated with the type of DebugFilter instead of the FilterChainProxy.

@agrgat agrgat added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels Dec 23, 2023
@marcusdacoregio marcusdacoregio self-assigned this Dec 26, 2023
@marcusdacoregio marcusdacoregio added in: web An issue in web modules (web, webmvc) and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 26, 2023
@marcusdacoregio marcusdacoregio added this to the 6.1.7 milestone Dec 26, 2023
@marcusdacoregio
Copy link
Contributor

Thanks, @agrgat. This has been fixed via 7cd626f.

@adnsimona
Copy link

Didn't find this issue with the search on FilterChainProxy -> #14642 .
Which Spring Security versions have this fix? I see the 6.1.7 milestone, but Spring Boot 3.2.2 uses 6.2.1 spring security version. Is this in 6.2.2?

@adnsimona
Copy link

Oh yes I see here 7cd626f 6.2.2 clicking the (...) Thanks for the fix. I check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants