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

ServerUpgradeRequest.getCookies() can throws NullPointerException #6654

Closed
EricBlanquer opened this issue Aug 23, 2021 · 2 comments · Fixed by #6655
Closed

ServerUpgradeRequest.getCookies() can throws NullPointerException #6654

EricBlanquer opened this issue Aug 23, 2021 · 2 comments · Fixed by #6655
Assignees
Labels
Bug For general bugs on Jetty side

Comments

@EricBlanquer
Copy link

https://github.com/eclipse/jetty.project/blob/b2c420a124392b3e79a6abf263ec00f51e387409/jetty-websocket/websocket-core-server/src/main/java/org/eclipse/jetty/websocket/core/server/ServerUpgradeRequest.java#L93

Hi,
request.getCookies() can be null and this code can throws a NullPointerException

@EricBlanquer EricBlanquer changed the title ServerUpgradeRequest can throws NullPointerException ServerUpgradeRequest.getCookies() can throws NullPointerException Aug 23, 2021
@joakime joakime added the Bug For general bugs on Jetty side label Aug 23, 2021
@joakime joakime added this to To do in Jetty 10.0.7/11.0.7 FROZEN via automation Aug 23, 2021
joakime added a commit that referenced this issue Aug 23, 2021
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
@joakime joakime linked a pull request Aug 23, 2021 that will close this issue
@joakime
Copy link
Contributor

joakime commented Aug 23, 2021

Opened PR #6655

@joakime joakime assigned joakime and unassigned lachlan-roberts Aug 23, 2021
@joakime joakime moved this from To do to Review in progress in Jetty 10.0.7/11.0.7 FROZEN Aug 23, 2021
joakime added a commit that referenced this issue Aug 23, 2021
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
joakime added a commit that referenced this issue Aug 24, 2021
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Jetty 10.0.7/11.0.7 FROZEN automation moved this from Review in progress to Done Aug 25, 2021
joakime added a commit that referenced this issue Aug 25, 2021
…rade-npe-request-cookies

Issue #6654 - Fix NPEs from bad Servlet API use
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
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants