eclipse-uprotocol / eclipse-uprotocol/up-streamer-rust

Pubsub messages are being forwarded even if different subject mappings are specified in subscription.json

Open
#74 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4
Forks
15
PR merge metrics
No merged PRs in 30d

Description

There is an issue where publish messages are being routed through the streamer even though their topics are not included in the subscription mapping.

The bug can be replicated with one zenoh subscriber with authority B and two mqtt publishers with authority A and C where the streamer is configured to forward from B to A and C, from A to B and from C to B (i.e. all possible forwardings are enabled), as well as the following subscription data:
```json
{
"//authority_A/5BA0/1/8001": ["//authority_B/5678/1/1234"]
}
```
which should imply that the zenoh subscriber should only be possible to receive messages from authority A.

In reality the subscriber CAN subscribe to topics from authority C as well and receive messages on them.
This behavior also appears if the left side of the subscription map is mutated even more like for example
```json
{
"//*/5BA0/1/8001": ["//authority_B/5678/1/1234"]
}
```
but it does NOT appear if the right side is mutated like
```json
{
"//authority_A/5BA0/1/8001": ["//*/5678/1/1234"]
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.