-
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
Changes to Resource no longer support custom url schemes. #8886
Comments
@lorban @joakime can one of you take this issue. Moderately important as it is blocking Jan's work. I think the issue is here: https://github.com/eclipse/jetty.project/blob/jetty-12.0.x/jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java#L87-L91 We assume a So I think we need to revive Perhaps we just have a curated list of protocols that we will mount and everything else is tried a UrlResource as last gasp effort? |
We should be super wary of supporting custom URL streams in the long run. |
Opened PR #8888 to experiment with having |
This also looks related: https://bugs.eclipse.org/bugs/show_bug.cgi?id=570590 |
…e-schemes Issue #8886 - support extensible Resource URI schemes
Closing, addressed in PR #8888 |
jetty-12
In previous versions of jetty, a call like
Resource.newResource("bundleresource://62.fwk1116834242/org/eclipse/jetty/webapp/webdefault.xml")
would return aURLResource
that could be used to eg open an input stream and read the xml content.In jetty-12, we get the following exception instead:
The text was updated successfully, but these errors were encountered: