-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Arjen Poutsma opened SPR-14714 and commented
When mapping against path patterns, the HttpRequestPathHelper
currently uses the path as returned from HttpRequest.getURI().getRawPath()
as lookup path. However, when running in a servlet environment, this lookup path represents the entire path (including servlet context), which is not desirable.
Proposed solution: add a getPath()
method to HttpRequest
, defaulting to return getURI().getRawPath()
, but with an override in ServletServerHttpRequest
to return the proper lookup path (obtained from UrlPathHelper
.
Affects: 5.0 M1
Issue Links:
- Add support for context paths in Spring Web Reactive [SPR-14726] #19291 Add support for context paths in Spring Web Reactive
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug