Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UriTemplate should support regex matching with n times {n} pattern [SPR-13627] #18205

spring-issuemaster opened this issue Oct 30, 2015 · 0 comments


None yet
2 participants
Copy link

commented Oct 30, 2015

Nikhil opened SPR-13627 and commented

When I create a UriTemplate with the following template string where I am using the n times pattern {2} in the regex


This fails to match the uri string


Looks like UriTemplate fails to properly parse the {} of any form within the regular expression

Similar improvements to parse the {} were recently applied to UriComponents and UriComponentsBuilder here #17896, but the UriTemplate still lacks this.

Affects: 4.2.2

Issue Links:

  • #18202 UriTemplate parser fails on Regular Expressions with quantifiers ("is duplicated by")
  • #17896 UriComponents should support URI variables that contain a regex
  • #18280 Regression: UriTemplate does not match when URI ends with slash

Referenced from: commits 971f046

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.