-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] topic subscription merges foo/# with foobar/# #1734
Comments
I deleted the subscription to So it looks like that they're being "merged" somehow. |
Yep confirmed. can easily recreate the bug.
|
Hi, sorry for my late reply. Thanks for your response, but I cannot reproduce your issue: And I noticed your MQTTX version is outdated. Please upgrade to the latest version (https://mqttx.app/downloads) to use. |
Thanks so much! 💛 I'm sorry, I misunderstood this issue. I reproduced it, and it's caused by the filter function on the search method for the database. It's a BUG, and we will fix it in the next version. Thanks. |
Happy days! |
Updated on https://github.com/emqx/MQTTX/releases/tag/v1.11.0. Thanks for your feedback. |
What did I do
Created a topic subscription in the format
tray/#
in order to subscribe to messages in the formattray/abcd1234/state
tray/12cbac123/ping
etc.Note we have a seperate subscriptions setup for
traybot/#
What happened
Messages of the format
traybot/#
are also being subscribed toExpected
Expected result would be that
traybot/#
messages are ignored as they do not conform to the patterntray/#
it appears that the trailing(edit, see comment below)/
character is being ignored and that the subscription is insteadtray#
which is unexpected behaviour.Environment
More detail
Screenshot showing subscription and also one correct and one incorrect message. (Please note that the payloads, redacted as I don't have approval to share, do not contain the words "tray" anywhere)
The text was updated successfully, but these errors were encountered: