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

Closed
spring-projects-issues opened this issue Oct 30, 2015 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues 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

/site.{domain:co.[a-z]{2}}

This fails to match the uri string

/site.co.eu

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:

Referenced from: commits 971f046

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants