Skip to content

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

@Benedikt-Illich

Description

@Benedikt-Illich

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:

{
  "//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

{
  "//*/5BA0/1/8001": ["//authority_B/5678/1/1234"]
}

but it does NOT appear if the right side is mutated like

{
  "//authority_A/5BA0/1/8001": ["//*/5678/1/1234"]
}

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