Skip to content

StompSubProtocolHandler makes the same assumption about header accessor as SimpleBrokerMessageHandler used to [SPR-14791] #19357

Closed
@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-14791 and commented

Just like in #18851, StompSubProtocolHandler.getStompHeaderAccessor() makes an assumption about the content of the Message it is processing. In particular, it assumes that there is a MessageHeaderAccessor, but that isn't necessarily the case, for instance if the user has added a ChannelInterceptor that rebuilds the message and adds some headers by calling MessageBuilder.fromMessage(...).build().


Affects: 4.2.8, 4.3.3

Issue Links:

Referenced from: commits f5cd538, aff5d21, 66722af

Backported to: 4.2.9

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions