Skip to content

ARTEMIS-6190 MQTT Will message properties propagation - #6616

Open
borisalekseev wants to merge 1 commit into
apache:mainfrom
borisalekseev:fix/mqtt-will-props
Open

ARTEMIS-6190 MQTT Will message properties propagation#6616
borisalekseev wants to merge 1 commit into
apache:mainfrom
borisalekseev:fix/mqtt-will-props

Conversation

@borisalekseev

@borisalekseev borisalekseev commented Aug 16, 2026

Copy link
Copy Markdown

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 CONNECT packet, 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 Will PUBLISH packet.

The remaining Application Message properties allowed in Will Properties are discarded:

  • Payload Format Indicator
  • Message Expiry Interval
  • Content Type
  • Response Topic
  • Correlation Data

Artemis already supports these properties for regular MQTT 5 PUBLISH packets. However, they are lost before the Will Message reaches the existing publish conversion path because the generated Will PUBLISH contains only User Properties.

As a result, MQTT 5 subscribers receive the Will payload without the metadata supplied by the publishing client in the original CONNECT packet.

@borisalekseev borisalekseev changed the title fix: MQTT Will message properties propagation ARTEMIS-6190 MQTT Will message properties propagation Aug 17, 2026
All will properties are delivered with publish packet on unexpected client disconnect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant