Multiple slash sanitisation should be optional in UriComponentsBuilder
#34076
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: waiting-for-triage
An issue we've not yet triaged or decided on
The primary reason for this issue is spring-cloud/spring-cloud-gateway#2795 which under the hood uses
UriComponentsBuilder
. See this comment specifically: spring-cloud/spring-cloud-gateway#2795 (comment)In the context of #14904 and #17006 there have been changes made to sanitise multiple consecutive slashes and replace them via a single slash:
spring-framework/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
Lines 881 to 891 in 78f28fd
Technically, there is no restriction on multiple consecutive slashes - those are valid urls, so I think that adding the option of preserving those in
UriComponentsBuilder
would be a good thing, and would solve the mentioned gateway issue.What do you think?
The text was updated successfully, but these errors were encountered: