Skip to content

Fix MQTT 5 QoS 2 pub reply encoding (5.1 branch) - #302

Closed
shblue21 wants to merge 1 commit into
vert-x3:5.1from
shblue21:fix-mqtt5-qos2-pub-replies-5.1
Closed

Fix MQTT 5 QoS 2 pub reply encoding (5.1 branch)#302
shblue21 wants to merge 1 commit into
vert-x3:5.1from
shblue21:fix-mqtt5-qos2-pub-replies-5.1

Conversation

@shblue21

Copy link
Copy Markdown
Contributor

Motivation:

Backport of #296 for the 5.1 branch.

This applies the same MQTT 5 QoS 2 PUBREC, PUBREL, and PUBCOMP reply encoding fix from master.

A wire-level regression test covers PUBREC, PUBREL, and PUBCOMP reason codes and properties.

Conformance:

I have signed the ECA

Motivation:

MQTT 5 PUBREC, PUBREL, and PUBCOMP APIs accept reason codes and properties,
but MqttEndpointImpl used a variable header type that Netty does not encode
them from.

As a result, supplied reason codes and properties were not written on the wire.

Changes:

Use MqttPubReplyMessageVariableHeader for PUBREC, PUBREL, and PUBCOMP replies.

Add wire-level MQTT 5 regression tests covering PUBREC, PUBREL, and PUBCOMP
reason codes and properties.

Signed-off-by: Jihun Kim <shblue21@naver.com>
(cherry picked from commit d2a720e)
@ppatierno

Copy link
Copy Markdown
Member

Usual failure, we need this cherry-pick being merged #304 before you can rebase and tests pass.

@shblue21

shblue21 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Got it, thanks!

@shblue21

Copy link
Copy Markdown
Contributor Author

Already cherry-picked into 5.1, closing this. Thanks!

@shblue21 shblue21 closed this Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants