Dhruti90 / google-gdata1111

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

QueryClientLoginToken fails silently when there's no net connection #307

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. unplug ethernet cable
2. call service QueryClientLoginToken
3.

What is the expected output? What do you see instead?
Expected to get an exception thrown out, but just got a null token instead.

The problem is in the Utilities.QueryClientLoginToken method. In the above 
case a WebException was thrown with "NameResolutionFailure" code, which does 
not have a response at all. Since tracing is not on in my project, there's 
nothing to stop the method to just return null at the end.

Original issue reported on code.google.com by ATGard...@gmail.com on 17 Dec 2009 at 10:03

GoogleCodeExporter commented 9 years ago
Hmm.. Not getting a token (NULL) was the error condition i had in mind for 
this. Why
is the type of exception important? 

Anyhow, i can see that a sophisticated client might want to represent more 
detailed
errors. I am going to throw the exception.

checked into svn

Frank

Original comment by fman...@gmail.com on 4 Jan 2010 at 11:29