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

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

Closed
joostdenijs opened this issue Jul 16, 2012 · 1 comment

Comments

@joostdenijs
Copy link
Contributor

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 <
<title type="text">Publicly Listed Services</title>This 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.

@ghost ghost assigned gcheng Jul 16, 2012
@gcheng
Copy link

gcheng commented Jul 19, 2012

fix ready

@gcheng gcheng closed this as completed Jul 27, 2012
gcheng pushed a commit to gcheng/azure-sdk-for-java that referenced this issue May 17, 2013
Enable update subscription.
g2vinay pushed a commit to g2vinay/azure-sdk-for-java that referenced this issue May 30, 2019
navalev pushed a commit to navalev/azure-sdk-for-java that referenced this issue Dec 24, 2019
* Refactoring code
* Remove duplicate methods
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants