Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
krisher opened this Issue · 0 comments

2 participants

@krisher

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 softprops closed this in 5b86be5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.