-
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
ResourceHandler set base resource as string #8735
Conversation
…-setBaseResource-string
…-setBaseResource-string
+ Fix XML names + fix the anti-pattern of setBaseResourceAsPath(someResource.getPath())
fixed tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of mechanical changes.
Great cleanup of the Jetty XMLs. (even in the commented out projects/modules)
One odd deprecation. (IMO, just delete it)
I dismissed the CodeQL alert on Zip Slip (as that code is protected already)
*/ | ||
@ManagedAttribute("document root for context") | ||
@Deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just delete this method now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep it in ee9 as we are trying to be as compatible as possible with jetty-10.
We can remove in 12.1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already changed the contract from jetty-10 though.
Resource.newResource(String)
no longer exists.
Have to use ResourceFactory.newResource(String)
now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, there are changes, but it costs us nothing much to hold onto a deprecated method for at least a few release cycles.
We could remove it, but it can be a confusing name change, so leaving it as a sign post is a good idea.
Added convenience method to set resource from a string. Closes #8727.