After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564141 - Evolution calendar sync import fails
Evolution calendar sync import fails
Status: RESOLVED FIXED
Product: conduit
Classification: Other
Component: other
0.3.x
Other Linux
: Normal normal
: ---
Assigned To: conduit-maint@gnome.bugs
conduit-maint@gnome.bugs
: 561355 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-11 16:27 UTC by Brian Teague
Modified: 2009-02-13 11:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make EvoCalendar's _get_object return a VEVENT instead of a VCALENDAR (653 bytes, patch)
2008-12-11 16:36 UTC, Brian Teague
none Details | Review

Description Brian Teague 2008-12-11 16:27:42 UTC
Goal: Synchronize calendars on two computers running Evolution by syncing both to a common (network-mounted) folder.

Steps to reproduce:
1.  Sync computer A to network folder (successful)
2.  Sync computer B to network folder (EvoCalendar --> folder succeeds, folder --> EvoCalendar fails)

Root cause:
EvoCalendar's _get_object returns an iCal VCALENDAR containing a single VEVENT for each event on the calendar.  However, EvoCalendar's _create_object expects an iCal VEVENT.  The evolution-data-server can't parse the VCALENDAR and fails.

Suggested fix:
Modify EvoCalendar's _get_object to return a VEVENT instead of a VCALENDAR.  See attached patch.  

Alternative fix:
In EvoCalendar's _create_object, parse the VEVENT out of the VCALENDAR before calling evolution.ecal.ECalComponent().  I'm not familiar enough with the vobject API to do this quickly.

Other considerations:
The other two consumers for Events (AFAICT) are the Google Calendar and the iPod calendar.  It's not clear to me what format they expect.  I can't test the iPod (lack of hardware) and the Google Calendar module is disabled, assumedly for good reason.
Comment 1 Brian Teague 2008-12-11 16:36:19 UTC
Created attachment 124432 [details] [review]
Make EvoCalendar's _get_object return a VEVENT instead of a VCALENDAR

Proposed fix.
Comment 2 John Stowers 2009-01-20 01:37:42 UTC
Does this, in combination with the other evo patches, work for you now?

p.s. Sorry for taking so long to commit. The PhD intervened for a while...
Comment 3 Brian Teague 2009-01-20 01:41:27 UTC
Yes, this combination has Evo calendar, addressbook and task sync working for me.

...and don't worry about the delay - I'm a grad student myself, so I completely understand.
Comment 4 John Stowers 2009-01-20 01:52:21 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 5 John Stowers 2009-02-13 11:36:53 UTC
*** Bug 561355 has been marked as a duplicate of this bug. ***