- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
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:
- UriTemplate parser fails on Regular Expressions with quantifiers [SPR-13624] #18202 UriTemplate parser fails on Regular Expressions with quantifiers ("is duplicated by")
- UriComponents should support URI variables that contain a regex [SPR-13311] #17896 UriComponents should support URI variables that contain a regex
- Regression: UriTemplate does not match when URI ends with slash [SPR-13705] #18280 Regression: UriTemplate does not match when URI ends with slash
Referenced from: commits 971f046
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement