-
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)status: duplicateA duplicate of another issueA duplicate of another issue
Description
Thorsten Schoel opened SPR-13624 and commented
UriTemplate allows for template variables to define a matching pattern.
These patterns are regular expressions. UriTemplate's inner class Pattern makes use
of a Regular Expression itself to identify variables in the template string. This Regular
Expression ("\\{([^/]+?)\\}") will match anything between a pair of curly brackets, where
a pair is an opening bracket and the next closing bracket. The problem here is that no
balancing is performed and thus template Regular Expressions containing a closing
curly bracket will lead to wrong parsing. Examples are Regular Expressions containing
literal brackets (\}) or certain quantifiers ({n}, {n,}, {,n}, or {n,m}), such as
"/path/{var:\\d{8}}".
Affects: 4.2.2
Issue Links:
- UriTemplate should support regex matching with n times {n} pattern [SPR-13627] #18205 UriTemplate should support regex matching with n times {n} pattern ("duplicates")
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issueA duplicate of another issue