Skip to content

Conversation

@szantopeter
Copy link
Contributor

@szantopeter szantopeter commented May 30, 2017

If the value of spring.resources.static-locations is not ending with a trailing slash then no resources are loaded from the specified folder. The current code already provided a solution for adding a trailing slash, but that processing was done in the wrong place, so I moved it to a location where it really takes effect.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 30, 2017
@szantopeter
Copy link
Contributor Author

@snicoll @philwebb what do you think about this PR?

@philwebb
Copy link
Member

philwebb commented Jun 2, 2017

that processing was done in the wrong place, so I moved it to a location where it really takes effect.

@szantopeter Can you provide a bit more background on why the existing code isn't working for you? Do you have a sample application you can share that shows the problem?

@philwebb philwebb added the status: waiting-for-feedback We need additional information before we can continue label Jun 2, 2017
@szantopeter
Copy link
Contributor Author

@philwebb I created a sample here https://github.com/szantopeter/spring-boot-static-locations There are two tests, both should pass, but one fails. The only difference between them is a trailing slash

@philwebb
Copy link
Member

philwebb commented Jun 6, 2017

Thanks.

@philwebb philwebb added type: bug A general bug priority: normal and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Jun 6, 2017
@philwebb philwebb added this to the 1.5.4 milestone Jun 6, 2017
@philwebb
Copy link
Member

philwebb commented Jun 6, 2017

We might be able to shift that logic to setStaticLocations

@wilkinsona wilkinsona self-assigned this Jun 6, 2017
@wilkinsona wilkinsona closed this in ad62905 Jun 6, 2017
@wilkinsona
Copy link
Member

@szantopeter Thanks very much for the PR. As suggested by @philwebb, we've taken a slightly different approach to fixing the problem. Please see ad62905 for details.

@szantopeter
Copy link
Contributor Author

@wilkinsona it took me some efforts to identify the bug and find the solution so I was hoping that I will have a commit in Spring Boot, but apart from that final solution is good as well!

@wilkinsona
Copy link
Member

@szantopeter Sorry. We would normally have taken a bit more time to give you a chance to make the suggested updates but we're trying to finish off 1.5.4 which is due on Thursday. Please don't misinterpret the PR not being merged as us not appreciating your efforts.

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

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants