Bug 129527 - ICal export does not format unknown attributes correctly
Summary: ICal export does not format unknown attributes correctly
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-21 01:11 UTC by Graham Cobb
Modified: 2009-03-01 18:47 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 Graham Cobb 2006-06-21 01:11:53 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

An event is created in a "Calendar in Local Directory" resource using the following .ics file:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:Graham Cobb's OWA sync V0.4
BEGIN:VEVENT
CATEGORIES:X-OWA
DTSTART:20060531T160000Z
DTEND:20060531T170000Z
SUMMARY:GRC Test event
LOCATION:pin 3901
STATUS:CONFIRMED
DESCRIPTION:Objective:\nProvide overview of EMEA userconference to product marketing and operations to inform you of current plan and agenda and   obtain input.\nAgenda\nOverview of Event\nReview Agenda\nQuestions / Input\n
UID:grc-123
X-GRC-TESTING:Objective:\nProvide overview of EMEA userconference to product marketing and operations to inform you of current plan and agenda and   obtain input.\nAgenda\nOverview of Event\nReview Agenda\nQuestions / Input\n
END:VEVENT
END:VCALENDAR

(Note that both the DESCRIPTION and the X-GRC-TESTING attributes contain newlines, quoted as required for iCal format)

The event loads correctly and works correctly.  However, when it is exported to an iCalendar file, the following entry is written:

BEGIN:VEVENT
DTSTAMP:20060620T225904Z
ORGANIZER:MAILTO:
X-GRC-TESTING:Objective:
Provide overview of EMEA userconference to 
 product marketing and operations to inform you of current plan and agenda 
 and   obtain input.
Agenda
Overview of Event
Review Agenda
Questions / 
 Input

CREATED:20060620T223019Z
UID:grc-123
SEQUENCE:0
LAST-MODIFIED:20060620T223019Z
DESCRIPTION:Objective:\nProvide overview of EMEA userconference to 
 product marketing and operations to inform you of current plan and agenda 
 and   obtain input.\nAgenda\nOverview of Event\nReview Agenda\nQuestions 
 / Input\n
SUMMARY:GRC Test event
LOCATION:pin 3901
STATUS:CONFIRMED
CLASS:PUBLIC
PRIORITY:5
CATEGORIES:X-OWA
DTSTART:20060531T160000Z
DTEND:20060531T170000Z
TRANSP:OPAQUE
END:VEVENT

Note that the DESCRIPTION line is correctly quoted but the X-GRC-TESTING line is not.

This problem also occurs when using the KCal::ICalFormat toString method.

This problem causes the kdepim plug-in for Opensync to fail to synchronise any events containing unknown attributes with newlines and produce lots of error messages instead!
Comment 1 Reinhold Kainhofer 2006-11-02 18:50:12 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 2 Sergio Martins 2009-02-27 18:14:56 UTC
I reproduced this with KOrganizer 4.1.2 and libical 0.42
Comment 3 Allen Winter 2009-03-01 18:47:08 UTC
SVN commit 933828 by winterz:

use a text value for X-FOO non-standard properties, except if those are vendor specific
properties. note that text values are quoted and folded.
BUG: 129527


 M  +11 -0     icalformat_p.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=933828