[libgdata] calendar: Use "default" instead of the user's username in request URIs



commit 1c193d636dca778d68135f9221ec60c6e41cc675
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Aug 25 00:05:35 2010 +0100

    calendar: Use "default" instead of the user's username in request URIs
    
    There appears to be a bug in the Google Calendar server which returns a
    different set of results if you query using the user's username instead of
    "default", which cause batch queries to inexplicably fail due because of
    "invalid" IDs, which are really actually valid.
    
    Thanks Google.

 gdata/services/calendar/gdata-calendar-service.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gdata/services/calendar/gdata-calendar-service.c b/gdata/services/calendar/gdata-calendar-service.c
index 3c393f4..984384e 100644
--- a/gdata/services/calendar/gdata-calendar-service.c
+++ b/gdata/services/calendar/gdata-calendar-service.c
@@ -327,8 +327,7 @@ gdata_calendar_service_insert_event (GDataCalendarService *self, GDataCalendarEv
 	g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), NULL);
 	g_return_val_if_fail (error == NULL || *error == NULL, NULL);
 
-	uri = _gdata_service_build_uri (FALSE, "http://www.google.com/calendar/feeds/%s/private/full";,
-		                        gdata_service_get_username (GDATA_SERVICE (self)));
+	uri = g_strconcat (_gdata_service_get_scheme (), "://www.google.com/calendar/feeds/default/private/full", NULL);
 	entry = gdata_service_insert_entry (GDATA_SERVICE (self), uri, GDATA_ENTRY (event), cancellable, error);
 	g_free (uri);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]