Netty resource handler doesn't work with jar-based files on windows #139

Closed
krisher opened this Issue Sep 18, 2012 · 0 comments

Comments

Projects
None yet
2 participants

krisher commented Sep 18, 2012

Attempting to serve static resources from a classpath jar file on windows results in the resource not being found. This is due to incorrect URL (re)construction during validation in

unfiltered.netty.Resources.safe(...)

On the validation success path it is reconstructing the URL with the platform-specific file separator (i.e. '' on windows), which results in an invalid URL. A later attempt to identify the jar file that the resource lives in (with URL.openConnection() in resolvers.scala yields an exception.

I will submit a patch as soon as I am able.

This is not a duplicate of #131

softprops closed this in 5b86be5 Sep 26, 2012

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