Skip to content

Conversation

@dometec
Copy link
Contributor

@dometec dometec commented Jan 12, 2026

Fix multilevel wildcard subscription (#) handling

When a subscription is defined on topic/#, a message published on topic topic must be received, as required by the MQTT 3.1.1 specification (see https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718107
).

This change updates both the filter validation and the topic matching logic to ensure correct behavior. It also simplifies the implementation by removing manual special-character replacement and using Pattern.quote instead.

…el). Implement MQTT topic filter validation and better matching logic; add tests for wildcards and shared subscriptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant