handling of path segments with leading spaces in HierarchicalUriComponents #32705
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
hi,
was wondering, is there a reason that path segments are trimmed in
HierarchicalUriComponents.FullPathComponent
?spring-framework/spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java
Line 900 in aaf3310
for example the following test will fail
mind you,
.toUri()
still returns the correct thing (https://path.com/seg1/seg2/%20seg-with-leading-space/file.png
), it's just that it seems weird to store the "wrong" path components.looks like a simple change for the above line like
should do the trick.
insights?
thanks,
The text was updated successfully, but these errors were encountered: