-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
URLResource.isDirectory() throws a NullPointerException when created from a jar:file: URL #9984
Comments
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
You're right that this But this looks like you're abusing the ResourceFactory.registerResourceFactory("https", new URLResourceFactory()); Using it for any other purpose sounds like abuse and makes me wonder what you're trying to achieve that cannot be done with the official |
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Thanks, both. Just to provide a summary of the background, as a (possibly intermediate) step I am trying to get things working with Jetty 12 as they did with Resource.newResource(String) in Jetty 11. Until we have |
I don't think What kind of magic is your custom |
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
It's a cornerstone of Spring Boot's executable jar support. I don't think it can be achieved in another way as a custom |
I'd like to understand better Spring Boot's executable jar support to try to figure out an elegant solution. Barring that, |
Jetty version(s)
12.0.0.Beta2
Java version/vendor
(use: java -version)
OS type/version
macOS 13.4
Description
URI.getPath()
can returnnull
butURLResourceFactory.URLResource.isDirectory()
assumes that it will not. This can result in aNullPointerException
.How to reproduce?
The text was updated successfully, but these errors were encountered: