Skip to content

Allow null resource base in ResourceFileServlet with Jetty 12 - #334

Merged
copybara-service[bot] merged 1 commit into
mainfrom
ResourceFileServlet-NullResource
Jan 24, 2025
Merged

Allow null resource base in ResourceFileServlet with Jetty 12#334
copybara-service[bot] merged 1 commit into
mainfrom
ResourceFileServlet-NullResource

Conversation

@lachlan-roberts

Copy link
Copy Markdown
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.

Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
@ghost

ghost commented Jan 24, 2025

Copy link
Copy Markdown

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
@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