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
WebFlux EncodedResource wrong mapping for encoding #24213
Comments
We have tests with So I'll need more specific instructions how to reproduce the issue, or best if you could provide some test that demonstrates the issue? |
I have a When the browser requests for example The problem resides on |
It seems to be related on my another issue, when FileSystemResource contains |
Thanks for the extra information but that still doesn't give me a sufficient information. I have read #24211 but I still can't think of a way to reproduce the issue described here that would append instead of replace at the end of the root path. I understand you believe the problem is in the constructor of Please provide a failing test, if you would like this issue to be looked into further. |
I close it: later at home I will check it again and I'll try to provide a test project if still failing and reopening if necessary... |
EncodedResource
callsoriginal.createRelative(original.getFilename() + extension)
that resolves the name twice:<somapath>/a.html
becomes<somepath>/a.html/a.html.gz
or<somepath>/a.html/a.html.br
Must be changed to resolve via original
URL
or check for Resource type and use it (FileSystemResource, ClasspathResource, etc...)The text was updated successfully, but these errors were encountered: