You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/04 02:53:51 UTC
[I] [BUG] Wildcard subscription matching not implemented — +/-# subscriptions never receive messages [shenyu]
Aias00 opened a new issue, #6851:
URL: https://github.com/apache/shenyu/issues/6851
## Description
Subscriptions containing `+` (single-level) or `#` (multi-level) are stored under the literal wildcard string and never matched against published topic names; the matcher is an explicit TODO. `Publish.send` looks up `SubscribeRepository.get(topic)` with the literal published topic (plain `ConcurrentHashMap.getOrDefault` exact-key lookup).
## Location
- `shenyu-protocol/shenyu-protocol-mqtt/src/main/java/org/apache/shenyu/protocol/mqtt/Subscribe.java:63` (`// todo Regular match`)
- `shenyu-protocol/shenyu-protocol-mqtt/src/main/java/org/apache/shenyu/protocol/mqtt/repositories/SubscribeRepository.java:90-92`
## Impact
Wildcard subscriptions never receive any message — a core MQTT feature is silently broken.
## Suggested fix
Implement topic-filter matching per MQTT-4.7 (`+` single level, `#` multi-level at end) and match published topics against all stored filters on each PUBLISH.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] Wildcard subscription matching not implemented — +/-# subscriptions never receive messages [shenyu]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6851:
URL: https://github.com/apache/shenyu/issues/6851#issuecomment-5174059287
👋 Hello @yuluo-yx
A new issue has been opened by @Aias00:
- **Title**: [BUG] Wildcard subscription matching not implemented — +/-# subscriptions never receive messages
- **Link**: https://github.com/apache/shenyu/issues/6851
Please review when you have time. Thank you! 🙏
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] Wildcard subscription matching not implemented — +/-# subscriptions never receive messages [shenyu]
Posted by "wy471x (via GitHub)" <gi...@apache.org>.
wy471x commented on issue #6851:
URL: https://github.com/apache/shenyu/issues/6851#issuecomment-5242979123
/assign
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org