Skip to content

Customize STOMP ERROR frame [SPR-12732] #17329

@spring-projects-issues

Description

@spring-projects-issues

slash3tc opened SPR-12732 and commented

The ability to customize which headers are present in the ERROR frame would allow for better front-end handling for error conditions that may have been triggered from ChannelInterceptors.

Currently, if an exception occurs in a channel interceptor (such as if you are attempting to control subscription events based on arbitrary logic), an ERROR frame is sent back to the client from StompSubProtocolHandler.sendErrorMessage.

The ERROR frame simply contains the throwable.getMessage() in a header which causes awkward client side handling.

Could a StompProtocolErrorHandlerStrategy be created to allow for message customization?


Affects: 4.1.4

Issue Links:

Referenced from: pull request #743

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions