[evolution-patches] fix for 71490 [calendar]



Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.423
diff -u -p -r1.423 ChangeLog
--- ChangeLog	21 Feb 2005 11:26:01 -0000	1.423
+++ ChangeLog	21 Feb 2005 12:33:25 -0000
@@ -1,3 +1,12 @@
+2005-02-21  Chenthill Palanisamy  <pchenthill novell com>
+
+
+	Fixes 71490
+	* backends/http/e-cal-backend-http.c
+      	(retrieval_done):If the vcalendar component does not
+	have the UID property, do not add the component the
+	component into the cache.
+
 2005-02-21  Harish Krishnaswamy  <kharish novell com>
 
 	* backends/groupwise/e-cal-backend-groupwise-utils.c:
Index: backends/http/e-cal-backend-http.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/http/e-cal-backend-http.c,v
retrieving revision 1.29
diff -u -p -r1.29 e-cal-backend-http.c
--- backends/http/e-cal-backend-http.c	2 Feb 2005 18:44:31 -0000	1.29
+++ backends/http/e-cal-backend-http.c	21 Feb 2005 12:33:25 -0000
@@ -293,8 +293,16 @@ retrieval_done (SoupMessage *msg, ECalBa
 	while (subcomp) {
 		ECalComponent *comp;
 		icalcomponent_kind subcomp_kind;
+		icalproperty *prop = NULL;
 
 		subcomp_kind = icalcomponent_isa (subcomp);
+		prop = icalcomponent_get_first_property (subcomp, ICAL_UID_PROPERTY);
+		if (!prop) {
+			g_warning (" The component does not have the  mandatory property UID \n");
+			subcomp = icalcomponent_get_next_component (icalcomp, kind);
+			continue;
+		}
+
 		if (subcomp_kind == kind) {
 			comp = e_cal_component_new ();
 			if (e_cal_component_set_icalcomponent (comp, subcomp)) {


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