Author: fmantek
Date: Fri Oct 12 03:06:40 2007
New Revision: 293
Modified:
trunk/clients/cs/RELEASE_NOTES.HTML
trunk/clients/cs/src/core/gauthrequest.cs
Log:
Fixed NULL response object being used for authentication exceptions.
Now the correct object used for the authentication request is passed to
the exception.
Modified: trunk/clients/cs/RELEASE_NOTES.HTML
==============================================================================
--- trunk/clients/cs/RELEASE_NOTES.HTML (original)
+++ trunk/clients/cs/RELEASE_NOTES.HTML Fri Oct 12 03:06:40 2007
@@ -29,6 +29,9 @@
exception if the extension list was empty</li>
<li>Fixed a bug in Originalevent where the wrong prefix was
persisted, making saving an originalevent impossible</li>
+ <li>Fixed NULL response object being used for authentication
exceptions.
+ Now the correct object used for the authentication request
is passed
+ to the exception.</li>
</ul>
</ul>
Modified: trunk/clients/cs/src/core/gauthrequest.cs
==============================================================================
--- trunk/clients/cs/src/core/gauthrequest.cs (original)
+++ trunk/clients/cs/src/core/gauthrequest.cs Fri Oct 12 03:06:40 2007
@@ -505,12 +505,12 @@
// check the content type, it must be text
if
(!response.ContentType.StartsWith(HttpFormPost.ReturnContentType))
{
- throw new GDataRequestException("Execution of
authentication request returned unexpected content type: " +
response.ContentType, this.Response);
+ throw new GDataRequestException("Execution of
authentication request returned unexpected content type: " +
response.ContentType, response);
}
// verify the content length. This should not be big,
hence a big result might indicate a phoney
if (response.ContentLength > 1024)
{
- throw new GDataRequestException("Execution of
authentication request returned unexpected large content length: " +
response.ContentLength, this.Response);
+ throw new GDataRequestException("Execution of
authentication request returned unexpected large content length: " +
response.ContentLength, response);
}
TokenCollection tokens =
Utilities.ParseStreamInTokenCollection(response.GetResponseStream());
authToken = Utilities.FindToken(tokens,
GoogleAuthentication.AuthToken);
@@ -523,7 +523,7 @@
int code= (int)response.StatusCode;
if (code != 200)
{
- throw new GDataRequestException("Execution of
authentication request returned unexpected result: " +code, this.Response);
+ throw new GDataRequestException("Execution of
authentication request returned unexpected result: " +code, response);
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---