azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

Getqueue for an invalid queue returns 200 and the exception is not wrapped in ServiceException.

Open joostdenijs opened this issue 14 years ago • 1 comments

Moved from the private repository.

try
{
     service.getQueue("myq");
}
catch(ServiceException e)
{
    System.out.println("couldn't get an existing queue");
}

Following is returned, actually it should return a Servicexception with something that says queue doesn't exist. This could be a ServiceBus service side issue, where it's not returning the correct response?

1 > GET https://deepakv.servicebus.windows.net/myq 1 > Authorization: WRAP access_token="net.windows.servicebus.action=Listen%2cManage%2cSend&http%3a%2f%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=https%3a%2f%2deepakv.accesscontrol.windows.net%2f&Audience=http%3a%2f%2fdeepakv.servicebus.windows.net%2f&ExpiresOn=1320745014&Issuer=https%3a%2f%2flodejard-sb.accesscontrol.windows.net%2f&HMACSHA256=Tp7kaJjkI4R3r6VszX655sSKqObwccswGNyjcidhb3M%3d"

Nov 8, 2011 1:16:53 AM com.sun.jersey.api.client.filter.LoggingFilter log INFO: 1 * Client in-bound response 1 < 200 1 < Transfer-Encoding: chunked 1 < Date: Tue, 08 Nov 2011 09:16:54 GMT 1 < Content-Type: application/atom+xml;type=feed;charset=utf-8 1 < Server: Microsoft-HTTPAPI/2.0 1 < Publicly Listed ServicesThis is the list of publicly-listed services currently availableuuid:4e235aaf-3f0e-4cd2-957a-36b862adc89a;id=2648482011-11-08T09:16:54ZMicrosoft® Windows Azure AppFabric - Service Bus

For the client library, it would be nice to throw ServiceException in this case rather that throwing WebApplicationexception.

joostdenijs avatar Jul 16 '12 21:07 joostdenijs

fix ready

gcheng avatar Jul 19 '12 07:07 gcheng