Skip to content
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

Allow null resource base in ResourceFileServlet with Jetty 12 #334

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

lachlan-roberts
Copy link
Collaborator

In com.google.apphosting.runtime.jetty9.ResourceFileServlet we were able to have a null resourceBase in the case that context.getResource(URIUtil.SLASH + appVersion.getPublicRoot()) returned null.

However in Jetty 12 the ResourceFactory#newResource method will throw IAE if the given URL is null.

This PR restores the same behavior by allowing ResourceFileServlet to have a null resourceBase for the Jetty 12 based runtimes.

Copy link

Gemini encountered an error creating the summary. You can try again by commenting @code-review-assist summarize.

@copybara-service copybara-service bot merged commit 546cbc0 into main Jan 24, 2025
11 checks passed
@copybara-service copybara-service bot deleted the ResourceFileServlet-NullResource branch January 24, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants