Summary
As per the spring doc multiple filter chains can be configured as below
<bean id="filterChainProxy" class="org.springframework.security.web.FilterChainProxy">
<constructor-arg>
<list>
<sec:filter-chain pattern="/restful/**" filters="
securityContextPersistenceFilterWithASCFalse,
basicAuthenticationFilter,
exceptionTranslationFilter,
filterSecurityInterceptor" />
</list>
</constructor-arg>
</bean>
Ref: https://docs.spring.io/spring-security/site/docs/4.0.x/reference/html/security-filter-chain.html
But only first matching chain gets executed which is having common url mapping for all configured filters. As this feature is a replacement to addition of multiple filters entries in web.xml which can have separate mappings. So it is required to have separate requestMatchers per filter in same chain.
Actual Behavior
Only first filter chain is getting called, and all filter will be having same url mapping.
Expected Behavior
It should be possible to configure separate RequestMatcher per filter in same chain.
Comment From: jzheaux
Thanks for the report, @codecracker2014. I'm sorry, I'm not completely understanding. This is partly because the snippet you provided only has one request matcher in it.
Could you please provide a snippet that isn't behaving how you want it to?
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.