PathPattern doesn't extract pathWithinHandlerMapping correctly for non-pattern URLs #25174
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
This is defined as:
However,
PathPattern
defines that case as an empty string:spring-framework/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java
Line 278 in e955e52
I don't know if there was a reason for the discrepancy or if it accidental. @bclozel and @aclement do you recall anything more?
I think it would be okay to correct the behavior. The only place where this is used in WebFlux is for static resources where are typically mapped with a pattern. Now that we are adding support for
PathPattenr
in Spring MVC with #24945 we should correct it to make it consistent and easier to switch fromAntPathMatcher
toPathPatternParser
in Spring MVC.The text was updated successfully, but these errors were encountered: