spring-projects / spring-security

Spring Security
http://spring.io/projects/spring-security
Apache License 2.0
8.84k stars 5.91k forks source link

Improve startup validation of request matchers #16135

Open jzheaux opened 2 days ago

jzheaux commented 2 days ago

Given that it's beneficial to use MvcRequestMatcher.Builder#servletPath whenever the MVC servlet path is something other than /, we should consider validating that at startup time.

One possibility is to provide a new implementation of FilterChainValidator.

Related to #13562

baezzys commented 1 day ago

Hi @jzheaux Could I try this issue?