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

Issue #11776 - NPE protection in Request.getServerPort #11777

Merged
merged 2 commits into from May 14, 2024

Conversation

joakime
Copy link
Contributor

@joakime joakime commented May 10, 2024

If the HttpURI is scheme-less, the attempt to get the port can result in a NPE.

Fixes: #11776

If the HttpURI is scheme-less, the attempt to get the port can result in a NPE
@joakime joakime added Bug For general bugs on Jetty side Sponsored This issue affects a user with a commercial support agreement labels May 10, 2024
@joakime joakime requested a review from gregw May 10, 2024 12:06
@joakime joakime self-assigned this May 10, 2024
@joakime joakime requested a review from lorban May 10, 2024 13:35
@joakime joakime changed the title Issue #11776 - NPE proteection in Request.getServerPort Issue #11776 - NPE protection in Request.getServerPort May 10, 2024
olamy
olamy previously approved these changes May 11, 2024
@lorban
Copy link
Contributor

lorban commented May 13, 2024

@gregw FYI I'm taking over this PR.

@lorban lorban requested review from gregw and olamy May 13, 2024 10:04
Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lorban lorban merged commit 33bc4f7 into jetty-12.0.x May 14, 2024
10 checks passed
@lorban lorban deleted the fix/12.0.x/undefined-scheme branch May 14, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side Sponsored This issue affects a user with a commercial support agreement
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

NPE from org.eclipse.jetty.ee8.nested.Request.getRequestURL
4 participants