moquette icon indicating copy to clipboard operation
moquette copied to clipboard

WillRetain message is published but is not retained

Open andrew-tpz opened this issue 5 years ago • 2 comments

Expected behavior

WillRetain message should replace retained message in corresponding topic before/after publishing to subscribers.

Actual behavior

WillRetain message is published to subscribers, but doesn't replace retained message in corresponding topic.

Steps to reproduce

Client1 connects with WillRetain massage Client2 connects Client1 disconnects Client2 receives will-message Client2 reconnects Client2 receives old retained message, not will-message

Moquette MQTT version

rev. 08cc8ce + PR #561

JVM version (e.g. java -version)

1.8

andrew-tpz avatar Dec 28 '20 12:12 andrew-tpz

@andsel I've reproduced this (quite old) issue. It still occurs on Moquette 0.17 and 0.18, using MQTT v3.1.1.

Steps to reproduce are the same as provided by @andrew-tpz.

Anything I can help you with?

m-oben avatar Aug 25 '25 11:08 m-oben

Thank's @m-oben I noted it, I'll re-check and eventually come back to you

andsel avatar Aug 27 '25 08:08 andsel