Skip to content
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

mount_point not removed on outgoing messages (version 2) #2244

Closed
alflexRH opened this issue Jun 30, 2021 · 4 comments
Closed

mount_point not removed on outgoing messages (version 2) #2244

alflexRH opened this issue Jun 30, 2021 · 4 comments
Labels
Component: mosquitto-broker Status: Completed Nothing further to be done with this issue, it can be closed by the requestor or committer. Type: Bug
Milestone

Comments

@alflexRH
Copy link

alflexRH commented Jun 30, 2021

Version: current 2.0.11 from docker

mosquitto.conf:
per_listener_settings true

listener 1883
protocol mqtt
allow_anonymous true

listener 1884
protocol mqtt
mount_point foo/
allow_anonymous true

Client A: mosquitto_sub -t '#' -p 1883 -v
Client B: mosquitto_sub -t '#' -p 1884 -v

With mosquitto 2.0.11:
When sending with mosquitto_pub -t 'bas' -m 'hi' -p 1884:
Client A: foo/bas hi -- As expected. The mount_point foo/ is prepended to 'bas', and it arrives as coming from 'foo/bas'.
Client B: foo/bas hi -- Not as expected. The mount_point foo/ should have been removed.

With mosquitto 1.6:
When sending with mosquitto_pub -t 'bas' -m 'hi' -p 1884:
Client A: foo/bas hi -- As expected. The mount_point foo/ is prepended to 'bas', and it arrives as coming from 'foo/bas'.
Client B: bas hi -- As expected. the mount_poiint foo/ is removed, and it arrives as coming from 'bas'

@renzenicolai
Copy link

Can confirm, I see this same problem on my MQTT server.

@DanielPeinhopf
Copy link

Yep, i can also confirm this in v2.0.11.

@D-r-P-3-p-p-3-r
Copy link

Same problem here (also 2.0.11).

@ralight ralight modified the milestones: 2.0.4, 2.0.12 Aug 22, 2021
@ralight ralight added Component: mosquitto-broker Status: Accepted It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug labels Aug 22, 2021
@ralight ralight added the Status: Completed Nothing further to be done with this issue, it can be closed by the requestor or committer. label Aug 22, 2021
@ralight
Copy link
Contributor

ralight commented Aug 22, 2021

Thank you, that is now fixed and will be part of 2.0.12 shortly. I've also improved the mount point test to cover this situation.

@ralight ralight removed the Status: Accepted It's clear what the subject of the issue is about, and what the resolution should be. label Aug 24, 2021
@ralight ralight closed this as completed in 723b5d7 Sep 1, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: mosquitto-broker Status: Completed Nothing further to be done with this issue, it can be closed by the requestor or committer. Type: Bug
Projects
None yet
Development

No branches or pull requests

5 participants