Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address rewrite setting not used for all addresses #3625

Open
djairhogeuens opened this issue Apr 12, 2024 · 1 comment
Open

Address rewrite setting not used for all addresses #3625

djairhogeuens opened this issue Apr 12, 2024 · 1 comment

Comments

@djairhogeuens
Copy link

When trying to use the addressRewriteRule setting, it seems this doesn't work on all addresses.

As far as I can see, the telemetry/{tenantId} and event/{tenantId} addresses are correctly rewrite while the notification/... and command_internal/... addresses remaing unchanged. Not sure if other addresses are also affected.

A first look into the code seems to indicate that the AddressHelper as defined in https://github.com/eclipse-hono/hono/blob/master/clients/amqp-connection/src/main/java/org/eclipse/hono/client/amqp/config/AddressHelper.java is used for some addresses but not for all of them (like here https://github.com/eclipse-hono/hono/blob/master/clients/command-amqp/src/main/java/org/eclipse/hono/client/command/amqp/ProtonBasedInternalCommandSender.java).

I'm very new to Hono and definitely not experienced in the code base so my first root cause analysis might be incorrect.

We're trying to implement Hono with an external AMQP broker which requires that our addresses get a prefix as the broker is also used by other applications.

I'd appreciate if someone could help me out.

@sophokles73
Copy link
Contributor

This might indeed be true. The notification mechanism has been added quite after the initial telemetry and event addresses. We would be happy to receive a corresponding PR :-)

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

No branches or pull requests

2 participants