[evolution-patches] Fix for the bug #272749 [exchange calendar]



Hi,
    Have attached the fix for the bug. The timezone needs to be added to the backend, for the create_object to use it while creating a object at the backend.
If we dont send the timezone component with the VCalendar, the object is not create in the server.

thanks, Chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.471
diff -u -p -r1.471 ChangeLog
--- ChangeLog	27 Feb 2006 14:57:09 -0000	1.471
+++ ChangeLog	3 Mar 2006 08:57:01 -0000
@@ -1,3 +1,9 @@
+2006-03-03  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #272749
+	* calendar/e-cal-backend-exchange-calendar.c: (receive_objects):
+	Add the timezones from the component to the backend.
+
 2006-02-27  Sushma Rai  <rsushma novell com>
 
 	* configure.in : Bumped the version to 2.5.92
Index: calendar/e-cal-backend-exchange-calendar.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/calendar/e-cal-backend-exchange-calendar.c,v
retrieving revision 1.52
diff -u -p -r1.52 e-cal-backend-exchange-calendar.c
--- calendar/e-cal-backend-exchange-calendar.c	27 Feb 2006 10:53:42 -0000	1.52
+++ calendar/e-cal-backend-exchange-calendar.c	3 Mar 2006 08:57:01 -0000
@@ -1429,7 +1429,7 @@ receive_objects (ECalBackendSync *backen
 	GList *comps, *l;
 	struct icaltimetype current;
 	icalproperty_method method;
-	icalcomponent *subcomp;
+	icalcomponent *subcomp, *icalcomp;
 	ECalBackendSyncStatus status = GNOME_Evolution_Calendar_Success;	
 
 	cbexc =	E_CAL_BACKEND_EXCHANGE_CALENDAR (backend);
@@ -1442,9 +1442,14 @@ receive_objects (ECalBackendSync *backen
                 return GNOME_Evolution_Calendar_InvalidObject;
         }
 
+
 	status = e_cal_backend_exchange_extract_components (calobj, &method, &comps);
 	if (status != GNOME_Evolution_Calendar_Success)
 		return GNOME_Evolution_Calendar_InvalidObject;
+		
+	icalcomp = icalparser_parse_string (calobj);
+	add_timezones_from_comp (E_CAL_BACKEND_EXCHANGE (backend), icalcomp);
+	icalcomponent_free (icalcomp);
 
 	for (l = comps; l; l= l->next) {
 		const char *uid, *rid;


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