Skip to content

AbstractRequestMatcherRegistry#requestMatchers should pick MvcRequestMatcher when using MockMvc #13849

Closed
@jzheaux

Description

@jzheaux

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.

Metadata

Metadata

Assignees

Labels

in: configAn issue in spring-security-configtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions