Skip to content

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

Closed
@alflexRH

Description

@alflexRH

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: mosquitto-brokerStatus: CompletedNothing further to be done with this issue, it can be closed by the requestor or committer.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions