Skip to content

[BUG] com.azure.core.exception.ResourceNotFoundException is thrown during ServiceBusAdministrationClient#getQueueExists execution #32219

Description

@avrilfanomar

Describe the bug
The com.azure.messaging.servicebus.administration.ServiceBusAdministrationClient#getQueueExists method is throwing ResourceNotFoundException when the queue doesn't exist instead of returning false.
Exception or Stack Trace
at com.azure.messaging.servicebus.administration.ServiceBusAdministrationClient.getQueueWithResponse(ServiceBusAdministrationClient.java:682) ~[azure-messaging-servicebus-7.12.1.jar!/:7.12.1]\n
at com.azure.messaging.servicebus.administration.ServiceBusAdministrationClient.getQueueExistsWithResponse(ServiceBusAdministrationClient.java:721) ~[azure-messaging-servicebus-7.12.1.jar!/:7.12.1]\n
at com.azure.messaging.servicebus.administration.ServiceBusAdministrationClient.getQueueExists(ServiceBusAdministrationClient.java:703) ~[azure-messaging-servicebus-7.12.1.jar!/:7.12.1]\n

To Reproduce
Invoke ServiceBusAdministrationClient#getQueueExists with the non-existing queue

Expected behavior
False is returned

Setup (please complete the following information):
Affects 7.12.1 version

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Service BusServiceBusTrack2This label is to manage work item for track 2.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions