-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Open
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
While AntPathMatcher
usage in MVC applications has been deprecated for a long time at this point, we recently received additional feedback about migration efforts.
PathPattern
currently only allows path elements that match multiple path segments at the end of a path pattern; for example:
/spring-framework/file/**
matches/spring-framework/file/some/file.txt
/spring-framework/file/{*filename}
matches/spring-framework/file/some/file.txt
and yieldsfilename=/some/file.txt
/**/file/index.html
is not allowed, pattern compilation fails/{*project}/file/index.html
is not allowed, pattern compilation fails/spring-framework/**/index.html
is not allowed, pattern compilation fails/spring-framework/{*folders}/index.html
is not allowed, pattern compilation fails
We would like to improve this situation by allowing 3) and 4). Cases 5) and 6) have been requested in the past (see #22847) but they will still be disallowed as the matching process is hard to define properly and creates undesired behavior.
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