You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because MockMvc's mock servlet context does not return any servlet registrations, Spring Security will pick AntPathRequestMatcher when requestMatchers(String) is used, even though an MvcRequestMatcher is likely the intended request matcher.
The text was updated successfully, but these errors were encountered:
jzheaux
changed the title
Testing Support between Boot 2.7 and Security 5.8
AbstractRequestMatcherRegistry#requestMatchers should pick MvcRequestMatcher when using MockMvc
Feb 8, 2024
There haven't been any reports yet of this causing an issue. I'm going to close this for now since seeing any behavioral problems will better inform the kind of change that should be made.
Because
MockMvc
's mock servlet context does not return any servlet registrations, Spring Security will pickAntPathRequestMatcher
whenrequestMatchers(String)
is used, even though anMvcRequestMatcher
is likely the intended request matcher.The text was updated successfully, but these errors were encountered: