Skip to content

Support forward slashes in Azure Service Bus topic and queue names#2324

Merged
jeremydmiller merged 1 commit intomainfrom
fix/2320-hierarchical-asb-topic-names
Mar 19, 2026
Merged

Support forward slashes in Azure Service Bus topic and queue names#2324
jeremydmiller merged 1 commit intomainfrom
fix/2320-hierarchical-asb-topic-names

Conversation

@jeremydmiller
Copy link
Copy Markdown
Member

Summary

  • URL-encode forward slashes in topic/queue/subscription names when constructing endpoint URIs so hierarchical names like szrmgr/myevent don't create extra URI segments
  • Decode segments in findEndpointByUri so the original names are preserved
  • Add 4 unit tests verifying round-trip URI fidelity for hierarchical topic names and subscriptions on hierarchical topics

Closes #2320

Test plan

  • New unit tests: find_topic_with_hierarchical_name_by_uri, find_subscription_on_hierarchical_topic_by_uri, hierarchical_topic_creates_correct_uri, hierarchical_topic_subscription_creates_correct_uri
  • All existing ASB transport unit tests pass (16 total)
  • Integration tests with live Azure Service Bus (requires infrastructure)

🤖 Generated with Claude Code

…2320)

Azure Service Bus allows hierarchical topic names with / separators
(e.g. "szrmgr/seizurereleasecreatedorupdated"). Previously, Wolverine's
URI parsing in findEndpointByUri treated the slash as a path separator,
causing a topic named "szrmgr/myevent" to be misinterpreted as a
subscription "myevent" on topic "szrmgr".

Fix by URL-encoding forward slashes in resource names when constructing
endpoint URIs (AzureServiceBusTopic, AzureServiceBusSubscription,
AzureServiceBusQueue), and decoding them when parsing URIs back in
findEndpointByUri. This ensures round-trip fidelity for hierarchical
names while preserving the existing URI segment structure for
subscriptions.

Closes #2320

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

How to include a forward slash / in an Azure Service Bus Topic name

1 participant