Skip to content

Unexpected behavior while using multi level wildcard # for the subscriber application. #1087

@vpeddada-tibco

Description

@vpeddada-tibco

We are connecting to HiveMQ cluster using paho client V5 i.e org.eclipse.paho.mqttv5.client-1.2.5.jar.
While we were evaluating the multi level wildcard feature for the subscriber we observed a discrepancy in behavior.

Here is a short descripton of the use case:

Expected behavior: The subscriber using a topic filter with the # wildcard (e.g., topic/level/#) should only receive messages from topics that match the specified hierarchy (i.e., topics starting with topic/level/).
ref https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901245

Actual behavior:
The subscriber is receiving messages from topics that do not follow the expected hierarchy, meaning topics with a different path structure (e.g., topic/otherlevel/...) are also being subscribed .

Could this be a valid item for a defect? Please let us know if any additional information is required. FYI, we register a callback to receive the messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions