Spring-security-7.1.xsd schema validates request-matcher incorrectly

Open Beginner friendly
#19,981 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@suryakant-source is already working on this.

Since Oct 23, 2026.

  • #19982 by @suryakant-source — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java, spring
Domain
security

Research direction

The issue names spring-security-7.1.xsd and spring-security-7.2.xsd, and points to the earlier fix in #18641 and the MatcherType values. Read that fix and compare the schema files; confirm they accept path, regex and ciRegex instead of mvc, ant, regex and ciRegex. Done when both schemas validate the intended matcher values.

Written by the indexing model from the issue text.

Description

status: waiting-for-triage type: bug

The bug descibed in #18641 was only fixed for Spring-security-7.0.xsd schema file but not in spring-security-7.1.xsd and spring-security-7.2.xsd because they were branched before.

"As of Spring Security 7 the AntPathRequestMatcher and the MvcRequestMatcher have been consolidated into the PathPatternRequestMatcher.
Therefore, all occurrences of request-matcher="ant" or request-matcher="mvc" should be replaced by request-matcher="path", at least if I understand the changes correctly.

However, the spring-security.xsd does not reflect the changes to the MatcherType correctly.
It still validates against the previous value set of mvc, ant, regex and ciRegex
It should instead validate agains the set path, regex and ciRegex"

Dominant language
Java
Stars
9.7k
Forks
6.4k
Avg merge
1d 18h
Merged PRs (30d)
37

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spring-projects/spring-security

All issues in spring-projects/spring-security

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.