Bug 203227 - Exported ics calendar files are incompatible with Mozilla Sunbird/Lightning
Summary: Exported ics calendar files are incompatible with Mozilla Sunbird/Lightning
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-09 23:34 UTC by larifari
Modified: 2009-08-17 20:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description larifari 2009-08-09 23:34:17 UTC
Version:            (using KDE 4.3.0)
OS:                Linux
Installed from:    Ubuntu Packages

I use ics calendar files with WebDAV, both with Mozilla Sunbird/Lightning and KOrganizer. However, the former cannot read the ics files anymore after KOrganizer has edited them.

I tracked the problem to some Mozilla-specific keywords (X-MOZ-GENERATION and X-MOZ-LOCATIONPATH). In the original files, they look like

X-MOZ-GENERATION:2
X-MOZ-LOCATIONPATH:xxxx

KOrganizer changes them to

X-MOZ-GENERATION;VALUE=TEXT:2
X-MOZ-LOCATIONPATH;VALUE=TEXT:xxxx

which lets both Mozilla Sunbird and the Lightning plugin choke with some obscure error message. If I edit the ics files manually and remove the added ";VALUE=TEXT" part, everything works fine again.
Comment 1 larifari 2009-08-09 23:50:01 UTC
I took a short glance at the subversion repository and discovered that the ICalFormatImpl::Private::writeCustomProperties() method in trunk/KDE/kdepimlibs/kcal/icalformat_p.cpp already has exceptions for several vendor-specific properties, including X-MOZILLA. Most likely my problem will be fixed by adding X-MOZ to the list.
Comment 2 Allen Winter 2009-08-16 02:25:18 UTC
SVN commit 1011838 by winterz:

Do not write VALUE=TEXT property for custom properties starting with "X-MOZ", which 
should take care of "X-MOZILLA" too.

BUG: 203227


 M  +1 -1      icalformat_p.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1011838
Comment 3 Allen Winter 2009-08-16 03:20:51 UTC
SVN commit 1011841 by winterz:

Backport r1011838 by winterz from trunk to the 4.3 branch:

Do not write VALUE=TEXT property for custom properties starting with "X-MOZ", which 
should take care of "X-MOZILLA" too.

CCBUG: 203227



 M  +1 -1      icalformat_p.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1011841
Comment 4 Kusi 2009-08-17 20:57:01 UTC
I have events in my ics file where several values are assigned to X-MOZ-LASTACK, eg
X-MOZ-LASTACK;VALUE=TEXT:20090727T084025Z\,20090720T125444Z (created by 
korganizer)

when I convert this to

X-MOZ-LASTACK:20090727T084025Z\,20090720T125444Z

Sunbird can still not read it. I need to put them on two separate lines. 
The following works for Sunbird:

X-MOZ-LASTACK:20090727T084025Z
X-MOZ-LASTACK:20090720T125444Z

does the fix also handle this case?