-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Arjen Poutsma opened SPR-15419 and commented
Currently, both PathPattern.matches(String)
and PathPattern.getPathRemaining(String)
require an additional parsing pass to extract URI template variables (with matchAndExtract(String))
. Moreover, dealing with a partial "prefix" match, like the ones matched by getPathRemaining
, results in an IllegalStateException
This should be fixed by making these methods return an "info" object, containing a boolean flag indicating whether the given path matched, and the template variables, as well as the remaining path (in case of getPathRemaining
Issue Links:
- Spring WebFlux using Kotlin with RouterDsl nested mappings not matching [SPR-15310] #19873 Spring WebFlux using Kotlin with RouterDsl nested mappings not matching ("is depended on by")
- Add PathPattern method that gives remaining path given a match [SPR-15336] #19899 Add PathPattern method that gives remaining path given a match
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement