From: <svn...@op...> - 2010-07-09 19:27:21
|
Author: cdfrey Date: Fri Jul 9 21:27:14 2010 New Revision: 6072 URL: http://www.opensync.org/changeset/6072 Log: Limit slow syncs to events that have DTSTART fields In some cases, when data is deleted from Evolution, the VEVENT blocks in the corresponding .ics files do not get deleted, but just trimmed down to basic fields, which lack a DTSART. During a slow sync, these "semi-deleted" records come back, and blow the XML validation, since there is no DTSTART. Limiting slow-sync records to ones with DTSTART fixes this issue. Modified: plugins/evolution2/src/evolution2_ecal.c Modified: plugins/evolution2/src/evolution2_ecal.c ============================================================================== --- plugins/evolution2/src/evolution2_ecal.c Fri Jul 9 21:27:08 2010 (r6071) +++ plugins/evolution2/src/evolution2_ecal.c Fri Jul 9 21:27:14 2010 (r6072) @@ -250,7 +250,7 @@ } } else { osync_trace(TRACE_INTERNAL, "slow_sync for %s", evo_cal->objtype); - if (!e_cal_get_object_list_as_comp (evo_cal->calendar, "(contains? \"any\" \"\")", &changes, &gerror)) { + if (!e_cal_get_object_list_as_comp (evo_cal->calendar, "(has-start?)", &changes, &gerror)) { osync_error_set(&error, OSYNC_ERROR_GENERIC, "Failed to get %s changes: %s", evo_cal->objtype, gerror ? gerror->message : "None"); goto error; } |