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

Fix for a ClassCastException when a filter over a WebSocket endpoint wraps the request #25107

Conversation

OndroMih
Copy link
Contributor

Fixes #24712.

Makes the cast to RequestFacade more robust - only if cast is allowed, searches through the chain of wrapped requests.

Added tests for the case fixed in #24691 and also for the case described in #24712.

Copy link
Contributor

@hs536 hs536 left a comment

Choose a reason for hiding this comment

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

LGTM

@hs536 hs536 added the bug Something isn't working label Aug 23, 2024
@dmatej dmatej added this to the 7.0.17 milestone Aug 23, 2024
@dmatej dmatej force-pushed the ondromih-gh24712-webSocket-default-web-module branch from 23a0bcb to 03c40fa Compare August 23, 2024 17:11
@dmatej
Copy link
Contributor

dmatej commented Aug 23, 2024

I have rebased the PR and resolved the conflict. Also note that there are two tests failing on JDK23 and this is one of them. It is not important for the PR, just to know ...

@dmatej dmatej merged commit ca895e3 into eclipse-ee4j:master Aug 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebsocketFilterWrapper casts the wrapped request as a RequestFace, causes classCastException
3 participants