[BUG] Java service bus: ServiceBusAdministrationClient.createSubscription does not create a rule when rule is included as a parameter #40024
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Describe the bug
We are trying to use the ServiceBusAdministrationClient to create subscriptions with custom pre-defined rules. However, when calling the
createSubscription
method and including a custom rule as a parameter, the client does not create the rule we specified and just attaches the $Default 1=1 SQL Rule Filter every time.To Reproduce
Steps to reproduce the behavior:
and include a custom-defined rule for the parameter
CreateRuleOptions ruleOptions
. Check the subscription in the Service Bus and confirm that the desired rule was not created, and rather a rule called$Default
with filter 1=1 was created instead.Code Snippet
Add the code snippet that causes the issue.
Expected behavior
A new subscription is created with a rule called
store-filter
with the above SQL expression.Setup (please complete the following information):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: