Mosquitto wildcard and retain messages bug? [message #1841252] |
Fri, 07 May 2021 17:45  |
Eclipse User |
|
|
|
Hi everyone,
I am observing a behaviour with wildcard and retained messages that looks like a bug to me, but I'd like someone to confirm.
I have a retained message at topic A/B/C/D/E with payload "Hello". If:
- I subscribe to topic A/B/C/D/E, I receive the message "Hello" with flag retain set to true, as expected
- I subscribe to topic A/B/C/+/#, I receive the message "Hello" with flag retain set to true, as expected
- I subscribe to topic A/B/C/#, I do not receive the retained message "Hello".
- In all 3 cases above, if I push a message to the topic A/B/C/D/E, I receive the message just fine, the problem is just with the retained messages. Given # is meant to be a wildcard working across multiple layers of topics, I am surprised by this behaviour and couldn't find anything explaining this. Is that a bug?
I run Mosquitto version 2.0.1, on docker, in case that's relevant.
Thanks.
|
|
|
|
Re: Mosquitto wildcard and retain messages bug? [message #1841607 is a reply to message #1841461] |
Fri, 21 May 2021 16:47  |
Eclipse User |
|
|
|
Apologies, I was only able to try now.
You are right, it does work for me too. It turns out the problem seems to be with NodeRed itself (this is where I noticed the misbehaviour and naively assumed this was something to do with mosquitto but I should have checked!). Lesson learned.
I'll raise it with the NodeRed team instead.
Thank you for the help.
|
|
|
Powered by
FUDForum. Page generated in 0.03709 seconds