-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issueA duplicate of another issue
Milestone
Description
Dave Syer opened SPR-8683 and commented
AntPathMatcher.AntPatternComparator algorithm wrong for hierarchical matches, Consider an incoming request
GET /hotels/foo/rooms
and two patterns that match
1: /hotels/{hotel}/**
2: /**
Intuitively 1 is more specific than 2, so the comparator should return negative with compare(1,2) (i.e. 1<2). Unfortunately this is not the case because the comparator thinks that 2 is more specific because it has fewer matching points (wildcards + brackets).
Affects: 3.0.6
Issue Links:
- Assign lowest priority to "/**" in AntPathMatcher [SPR-10550] #15181 Assign lowest priority to "/" in AntPathMatcher (_"duplicates"**_)
- AntPatternComparator prefers a less specific match when brackets occur [SPR-8355] #13002 AntPatternComparator prefers a less specific match when brackets occur
- RequestMapping with 3 PathVariable doesn't work [SPR-6741] #11407 RequestMapping with 3 PathVariable doesn't work
- Determination of the best pattern match to map a handler to an URL [SPR-7589] #12245 Determination of the best pattern match to map a handler to an URL
Referenced from: commits spring-attic/spring-framework-issues@876f756, spring-attic/spring-framework-issues@4332c1b
6 votes, 10 watchers
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issueA duplicate of another issue