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

[5.3.x] Fix JettyWebSocketSession.getRemoteAddress throwing instead of returning null with Jetty 10 #33620

Conversation

Spikhalskiy
Copy link

@Spikhalskiy Spikhalskiy commented Oct 1, 2024

Add graceful processing of org.eclipse.jetty.websocket.api.Session#getRemoteAddress returning null for Jetty 10
Closes #33619

This PR doesn't need a port to 5.2.x or 6+ branches. 5.2.x and 6.x branches handle this code identically, in a simple way, for two different jetty versions not maintaining compatibility between them.
5.3.x has Jetty 9 and 10 compatibility layer which introduced the problem.

@pivotal-cla
Copy link

@Spikhalskiy Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@Spikhalskiy Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 1, 2024
@Spikhalskiy Spikhalskiy force-pushed the 5.3.x-fix-IllegalArgumentExceptionon branch from 43a3aec to e4a8493 Compare October 1, 2024 00:45
@Spikhalskiy Spikhalskiy changed the title Fix JettyWebSocketSession.getRemoteAddress throwing instead of returning null with Jetty 10 [5.3.x] Fix JettyWebSocketSession.getRemoteAddress throwing instead of returning null with Jetty 10 Oct 1, 2024
@Spikhalskiy Spikhalskiy force-pushed the 5.3.x-fix-IllegalArgumentExceptionon branch from e4a8493 to 43a3aec Compare October 1, 2024 01:10
@bclozel
Copy link
Member

bclozel commented Oct 1, 2024

See #33619

@bclozel bclozel closed this Oct 1, 2024
@bclozel bclozel added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants