Closed
Description
Dave Syer opened SPR-14279 and commented
There's an assertion here: https://github.com/spring-projects/spring-framework/blob/master/spring-messaging/src/main/java/org/springframework/messaging/simp/broker/SimpleBrokerMessageHandler.java#L227. It says that the type of the accessor must be SimpMessageHeaderAccessor. But then the accessor is never actually used, so I'm wondering if the assertion is redundant.
It causes issues if anyone adds a ChannelInterceptor which manipulates headers, which seems like a perfectly valid thing to do, independent of whether you are a websocket client or not.
Affects: 4.2.6
Reference URL: spring-cloud/spring-cloud-sleuth#276
Issue Links:
- StompSubProtocolHandler makes the same assumption about header accessor as SimpleBrokerMessageHandler used to [SPR-14791] #19357 StompSubProtocolHandler makes the same assumption about header accessor as SimpleBrokerMessageHandler used to
Backported to: 4.2.7
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
spring-projects-issues commentedon May 17, 2016
Rossen Stoyanchev commented
This is probably a left-over from before the static accessor methods were added to the MessageHeaderAccessor hierarchy that we can probably remove.
spring-projects-issues commentedon May 18, 2016
Dave Syer commented
Could this be back ported to 4.2 please?