-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: messagingIssues in messaging modules (jms, messaging)Issues in messaging modules (jms, messaging)in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
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:
- Provide mechanism for tracking failed messages in STOMP protocol support [SPR-10891] #15519 Provide mechanism for tracking failed messages in STOMP protocol support
- SEC-2881 Provide an exception handling mechanism for ChannelSecurityInterceptor
Referenced from: pull request #743
mraycheva
Metadata
Metadata
Assignees
Labels
in: messagingIssues in messaging modules (jms, messaging)Issues in messaging modules (jms, messaging)in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement