Bug 12682 - calendar-backend's ICalConverter class does not export proper iCal data
: calendar-backend's ICalConverter class does not export proper iCal data
Status: UNCONFIRMED
Product: Maemo 5 Community SSU
general
: testing
: N900 Maemo
: Unspecified normal (vote)
: ---
Assigned To: unassigned
: general
:
:
:
:
  Show dependency tree
 
Reported: 2013-01-29 18:43 UTC by tempura.san
Modified: 2013-01-29 18:43 UTC (History)
0 users (show)

See Also:


Attachments
proposed patch (18.89 KB, patch)
2013-01-29 18:43 UTC, tempura.san
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description tempura.san (reporter) 2013-01-29 18:43:26 UTC
Created an attachment (id=3469) [details]
proposed patch

SOFTWARE VERSION: 21.2011.38-1Tmaemo7.2

EXACT STEPS LEADING TO PROBLEM: 
1. setup SyncEvolution for synching with ownCloud (see
http://tanghus.net/2012/07/syncing-your-n900-with-owncloud-an-update/)
2. push a calendar with at least one 'all-day' event to ownCloud
3. verify the event in ownCloud

EXPECTED OUTCOME: the 'all-day' event is displayed as 'all-day' event

ACTUAL OUTCOME: the 'all-day' event is changed to a regular event starting from
0:00 first day to 0:00 last day of event

REPRODUCIBILITY: always

EXTRA SOFTWARE INSTALLED: -

OTHER COMMENTS: 

The reason is that the ICalConverter class of calendar-backend is exporting the
wrong information in several ways:
* VERSION is reported as '1.0' although it should be '2.0' for iCal
* DTSTART/DTEND are not formatted correctly for 'all-day' events:

expected iCal format:
DTEND;VALUE=DATE:20130102
DTSTART;VALUE=DATE:20130101

sent N900 format (i.e. vCal):
DTSTART:20130101T000000
DTEND:20130102T000000

* SUMMARY/COMMENTS/DESCRIPTION strings are always encoded 'QUOTED-PRINTABLE' as
for vCal data, but iCal expects UTF-8 so it is not needed for iCal

I am not an vCal/iCal expert - so please correct me if the assumptions above
are wrong. But with the listed changes I have been able to synchronise
successfully with ownCloud.

Attached is a patch which fixes the named issues and removes some compiler
warnings.

Greetings,
Tempura