New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PathResourceResolver should not resolve "/" as a JAR resource [SPR-13241] #17832

Closed
spring-issuemaster opened this Issue Jul 16, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

spring-issuemaster commented Jul 16, 2015

Brian Clozel opened SPR-13241 and commented

This StackOverflow question demonstrates an issue with resource handling.

The following problem can be reproduced by:

  • adding at least one webjar resource on classpath
  • configuring it as a resource location
  • using the 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment