Consider improvements to handling suffixed URL patterns [SPR-15618] #20177
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Andy Clement opened SPR-15618 and commented
See the discussion in #19112 and #20156. It feels like suffixes are a common thing
(patterns ending '.*', '.txt', '.html') and it could be worth special handling for them. Possibly
a new PathElement subtype specifically for suffixed PathElements (because currently
"{foo}.*"
) type patterns are captured as RegexPathElement instances (the least optimal of the PathElement subtypes).Under #20156 a temporary fix was made to avoid treating '.*' as usage of a wildcard in the PathPattern comparator which feels wrong to some degree (because there is a wildcard there!) but it is what the AntPathMatcher comparator does (See PatternInfo#initCounters()) so it was done to make them consistent.
No further details from SPR-15618
The text was updated successfully, but these errors were encountered: