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.

Comment From: marcusdacoregio

Thanks, @agrgat. This has been fixed via https://github.com/spring-projects/spring-security/commit/7cd626fe2569346b945feec40fa16f231a558fde.

Comment From: adnsimona

Didn't find this issue with the search on FilterChainProxy -> https://github.com/spring-projects/spring-security/issues/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?

Comment From: adnsimona

Oh yes I see here https://github.com/spring-projects/spring-security/commit/7cd626fe2569346b945feec40fa16f231a558fde 6.2.2 clicking the (...) Thanks for the fix. I check it out.