ARTEMIS-6190 MQTT Will message properties propagation - #6616
Open
borisalekseev wants to merge 1 commit into
Open
ARTEMIS-6190 MQTT Will message properties propagation#6616borisalekseev wants to merge 1 commit into
borisalekseev wants to merge 1 commit into
Conversation
borisalekseev
force-pushed
the
fix/mqtt-will-props
branch
from
August 17, 2026 17:27
0de2bfc to
a0b285e
Compare
All will properties are delivered with publish packet on unexpected client disconnect.
borisalekseev
force-pushed
the
fix/mqtt-will-props
branch
from
August 17, 2026 17:27
a0b285e to
5bec488
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Propagate all MQTT 5 Will Properties that belong to the Application Message to the published Will Message.
I have no access to creating Jira tickets. However, I have sent a request for this and am ready to create an issue if necessary.
UPD: I received a Jira account and added a task reference to the PR title.
Problem
When Artemis processes an MQTT 5
CONNECTpacket, it currently preserves only two Will Properties:Will Delay Interval, which controls when the Will is published.User Property, which is added to the generated WillPUBLISHpacket.The remaining Application Message properties allowed in Will Properties are discarded:
Payload Format IndicatorMessage Expiry IntervalContent TypeResponse TopicCorrelation DataArtemis already supports these properties for regular MQTT 5
PUBLISHpackets. However, they are lost before the Will Message reaches the existing publish conversion path because the generated WillPUBLISHcontains only User Properties.As a result, MQTT 5 subscribers receive the Will payload without the metadata supplied by the publishing client in the original
CONNECTpacket.