PathResourceResolver should not resolve "/" as a JAR resource [SPR-13241] #17832
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Brian Clozel opened SPR-13241 and commented
This StackOverflow question demonstrates an issue with resource handling.
The following problem can be reproduced by:
ResourceUrlProvider
to resolve"/"
Doing so will call the resource chain to resolve this URL as an existing resource. Even if "/" is not a resource per se, folders within JARs are resolved as existing and readable resources, translating
"/"
into""
and thus breaking the root application link.Affects: 4.1.7
Reference URL: https://github.com/quwahara/stackoverflow-questions-31182261
Referenced from: commits daf94ea, 064abad, 106cce5, 3a4085a
Backported to: 4.1.8
The text was updated successfully, but these errors were encountered: