Skip to content

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

Closed
@agrgat

Description

@agrgat

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.

Metadata

Metadata

Labels

in: webAn issue in web modules (web, webmvc)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions