-
Notifications
You must be signed in to change notification settings - Fork 1.1k
native STOMP headers removed by WebSocketInboundChannelAdapter #3675
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
Comments
I cannot recall at the moment why did we remove that header, but would you mind to share more context how those custom headers can appear in the
So, most of those I probly won't mind to restore such a header, if you really confirm that plain Thank you! |
Hi, Thank you for the quick response. The STOMP header provided by the client is specific to the application. I can confirm it can be retrieved through
Thank you |
OK. Got it. Restoring then |
Fixes spring-projects#3675 The `WebSocketInboundChannelAdapter` removes a `SimpMessageHeaderAccessor.NATIVE_HEADERS` from headers used to create an outbound message. Turns out not all native headers are mapped by the `StompHeaderAccessor` to the top-level header entries. **Cherry-pick to `5.4.x` & `5.3.x`**
Really impressed with the quick resolution, thank you very much. |
Fixes #3675 The `WebSocketInboundChannelAdapter` removes a `SimpMessageHeaderAccessor.NATIVE_HEADERS` from headers used to create an outbound message. Turns out not all native headers are mapped by the `StompHeaderAccessor` to the top-level header entries. **Cherry-pick to `5.4.x` & `5.3.x`**
Fixes #3675 The `WebSocketInboundChannelAdapter` removes a `SimpMessageHeaderAccessor.NATIVE_HEADERS` from headers used to create an outbound message. Turns out not all native headers are mapped by the `StompHeaderAccessor` to the top-level header entries. **Cherry-pick to `5.4.x` & `5.3.x`**
Fixes #3675 The `WebSocketInboundChannelAdapter` removes a `SimpMessageHeaderAccessor.NATIVE_HEADERS` from headers used to create an outbound message. Turns out not all native headers are mapped by the `StompHeaderAccessor` to the top-level header entries. **Cherry-pick to `5.4.x` & `5.3.x`**
Hi,
I use the WebSocket Inbound Channel Adapter with the StompSubProtocolHandler for inbound STOMP over websocket. Our client application sets a few STOMP headers that we need to read in the backend. However, these headers are explicitely removed in WebSocketInboundChannelAdapter, please see below:
spring-integration/spring-integration-websocket/src/main/java/org/springframework/integration/websocket/inbound/WebSocketInboundChannelAdapter.java
Line 359 in f5f1c82
Is there any reason to do so? When comparing to HTTP for example, those headers are mapped and still accessible in the resulting Message.
Thank you,
The text was updated successfully, but these errors were encountered: