You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/10/20 19:17:00 UTC

[jira] [Commented] (ARTEMIS-6293) MQTT packet ID state can leak

    [ https://issues.apache.org/jira/browse/ARTEMIS-6293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18129306#comment-18129306 ] 

ASF subversion and git services commented on ARTEMIS-6293:
----------------------------------------------------------

Commit 6a51688c12ba8fa6c811c676c40912f423cbb739 in artemis's branch refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=artemis.git;h=6a51688c12 ]

ARTEMIS-6293 MQTT packet ID state can leak

Assisted-by: Claude


> MQTT packet ID state can leak
> -----------------------------
>
>                 Key: ARTEMIS-6293
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-6293
>             Project: Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> For QoS 1 and QoS 2 the broker tracks each in-flight delivery to a client so that a redelivery after a reconnect or a restart reuses the packet ID the client was originally given.
> When a client unsubscribes while a QoS 1 or QoS 2 delivery is still unacknowledged, the subscription and its queue are deleted along with the message(s), but the corresponding delivery tracking and packet ID state survives. It is only discarded when the session is reset by a clean start or by session expiry.
> Also, if a client re-subscribes to a filter it already holds and changes the no-local option, the broker returns in-flight messages to the queue for redelivery. However, leaked tracking makes the broker treat redeliveries as a new messages, so the client receives them again under a different packet ID. For QoS 2 this defeats exactly-once delivery.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org