[ 
https://issues.apache.org/jira/browse/ARTEMIS-5798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram updated ARTEMIS-5798:
------------------------------------
    Description: 
With MQTT 3.1.1, when PUBLISH QoS2 packet failed (custom LoginModule throw 
ActiveMQSecurityException based on time), the client reconnect with valid 
credential and resend the same PUBLISH packet. The server ignores and logs:
{noformat}
AMQ834009: Ignoring duplicate MQTT QoS2 PUBLISH packet for packet ID client 
from client with ID XX.{noformat}

Server session state is not handling the failed PUBLISH packet so PUBLISH 
packet with the same packet ID no longer be handled.

Reference:

https://github.com/apache/activemq-artemis/blob/2.44.0/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTPublishManager.java#L209-L212

  was:
With MQTT 3.1.1, when PUBLISH QoS2 packet failed (custom LoginModule throw 
ActiveMQSecurityException based on time), the client reconnect with valid 
credential and resend the same PUBLISH packet. The server ignores and logs 
"AMQ834009: Ignoring duplicate MQTT QoS2 PUBLISH packet for packet ID client 
from client with ID XX."

Server session state is not handling the failed PUBLISH packet so PUBLISH 
packet with the same packet ID no longer be handled.

Reference:

https://github.com/apache/activemq-artemis/blob/2.44.0/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTPublishManager.java#L209-L212


> MQTT QoS2 unauthorized publish ignored on retry
> -----------------------------------------------
>
>                 Key: ARTEMIS-5798
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5798
>             Project: Artemis
>          Issue Type: Bug
>          Components: MQTT
>    Affects Versions: 2.44.0
>         Environment: Artemis 2.44.0
> Eclipse Paho MQTT Python client 2.1.0
>            Reporter: Tommy Tsim
>            Priority: Major
>
> With MQTT 3.1.1, when PUBLISH QoS2 packet failed (custom LoginModule throw 
> ActiveMQSecurityException based on time), the client reconnect with valid 
> credential and resend the same PUBLISH packet. The server ignores and logs:
> {noformat}
> AMQ834009: Ignoring duplicate MQTT QoS2 PUBLISH packet for packet ID client 
> from client with ID XX.{noformat}
> Server session state is not handling the failed PUBLISH packet so PUBLISH 
> packet with the same packet ID no longer be handled.
> Reference:
> https://github.com/apache/activemq-artemis/blob/2.44.0/artemis-protocols/artemis-mqtt-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/mqtt/MQTTPublishManager.java#L209-L212



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to