Skip to content

Consider improvements to handling suffixed URL patterns [SPR-15618] #20177

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions