Skip to content
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-projects-issues opened this issue Jul 16, 2015 · 0 comments
Assignees
Labels
in: web status: backported type: bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues 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

@spring-projects-issues spring-projects-issues added type: bug status: backported in: web labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.2 GA milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web status: backported type: bug
Projects
None yet
Development

No branches or pull requests

2 participants