Author: fmantek
Date: Thu Mar 15 02:09:13 2007
New Revision: 115

Modified:
   trunk/clients/cs/RELEASE_NOTES.txt
   trunk/clients/cs/src/core/gauthrequest.cs

Log:
fixed an issue that we send an empty Authorization header when no credentials 
are given

Modified: trunk/clients/cs/RELEASE_NOTES.txt
==============================================================================
--- trunk/clients/cs/RELEASE_NOTES.txt  (original)
+++ trunk/clients/cs/RELEASE_NOTES.txt  Thu Mar 15 02:09:13 2007
@@ -6,6 +6,8 @@
   which account you want to access. Default is GOOGLE_OR_HOSTED, other values 
are GOOGLE or HOSTED
   as strings.
 - fixed an issue with the edit/self uris on the entry. They were not correctly 
setable.
+- fixed an issue that one you used an authenticated service, but did not 
supply credentials, we would send
+  an empty authentication header.
 
 == 1.0.9.4 ==
 - Google Base: fix for incorrect Price attribute behaviour
@@ -24,7 +26,7 @@
 
 
 
-
+
 == 1.0.9.3 ==
 - Google Base changes:
   New features:

Modified: trunk/clients/cs/src/core/gauthrequest.cs
==============================================================================
--- trunk/clients/cs/src/core/gauthrequest.cs   (original)
+++ trunk/clients/cs/src/core/gauthrequest.cs   Thu Mar 15 02:09:13 2007
@@ -313,11 +313,13 @@
                     this.factory.GAuthToken = QueryAuthToken(nc); 
                 }
             }
-            // now add the auth token to the header
-            // Tracing.Assert(this.factory.GAuthToken != null, "We should have 
a token now"); 
-            Tracing.TraceMsg("Using auth token: " + this.factory.GAuthToken); 
-            string strHeader = GoogleAuthentication.Header + 
this.factory.GAuthToken; 
-            this.Request.Headers.Add(strHeader); 
+            if (this.factory.GAuthToken != null && 
this.factory.GAuthToken.Length > 0)
+            {
+                // Tracing.Assert(this.factory.GAuthToken != null, "We should 
have a token now"); 
+                Tracing.TraceMsg("Using auth token: " + 
this.factory.GAuthToken);
+                string strHeader = GoogleAuthentication.Header + 
this.factory.GAuthToken;
+                this.Request.Headers.Add(strHeader);
+            }
         }
         
/////////////////////////////////////////////////////////////////////////////
 

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to