Skip to content

Preserve mutable headers for ordered user destinations - #37716

Open
jimi-21 wants to merge 2 commits into
spring-projects:mainfrom
jimi-21:fix/ordered-user-destination
Open

jimi-21 wants to merge 2 commits into
spring-projects:mainfrom
jimi-21:fix/ordered-user-destination

Conversation

@jimi-21

@jimi-21 jimi-21 commented Nov 18, 2026

Copy link
Copy Markdown

Summary

  • Keep the copied SimpMessageHeaderAccessor mutable when sending an immutable message.
  • Allow OrderedMessageChannelDecorator to add its task header for every session of a user when receive-order preservation is enabled.

Verification

  • Added a two-session regression test using the real ordered-channel wiring; it failed before the fix and passes afterward.
  • ./gradlew :spring-messaging:check: 907 tests completed with zero failures or errors.

Closes gh-37680

Keep the copied SimpMessageHeaderAccessor mutable when sending an immutable message so that OrderedMessageChannelDecorator can add its task header for every user session.

Closes spring-projectsgh-37680

Signed-off-by: jimi-21 <hejingming368@gmail.com>
Signed-off-by: jimi-21 <hejingming368@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

2 participants