Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCalendar events could be surrounded by CDATA string #85

Open
tchemineau opened this issue Apr 30, 2013 · 0 comments
Open

iCalendar events could be surrounded by CDATA string #85

tchemineau opened this issue Apr 30, 2013 · 0 comments

Comments

@tchemineau
Copy link

I found that into the last version of Davical, all events are sent within CDATA string.

For example :

<![CDATA[BEGIN:VCALENDAR
VERSION:2.0
PRODID:-////NONSGML kigkonsult.se iCalcreator 2.14//
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Europe/Paris
X-LIC-LOCATION:Europe/Paris
BEGIN:STANDARD
DTSTART:20131027T030000
TZOFFSETFROM: 0200
TZOFFSETTO: 0100
TZNAME:CET
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20130331T020000
TZOFFSETFROM: 0100
TZOFFSETTO: 0200
RDATE:20140330T020000
TZNAME:CEST
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
UID:B04CFDDC-555F-4BEE-BA73-CEC9DE0EC5DB
DTSTAMP:20130429T125556Z
CLASS:PUBLIC
CREATED:20130429T125556Z
DTSTART;TZID=Europe/Paris:20130429T160000
DTEND;TZID=Europe/Paris:20130429T163000
LAST-MODIFIED:20130429T125556Z
SEQUENCE:0
SUMMARY:TEST
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
]]>

This is specified into the RFC 4791 :

The iCalendar data embedded within the CALDAV:calendar-
timezone XML element MUST follow the standard XML character data
encoding rules, including use of &lt;, &gt;, &amp; etc. entity
encoding or the use of a <![CDATA[ ... ]]> construct.  In the
later case, the iCalendar data cannot contain the character
sequence "]]>", which is the end delimiter for the CDATA section.

Agendav does not strip this strings when passing the events to iCalcreator for parsing. The result is that iCalcreator does not recognized at all the first line of the event, and return FALSE.

I suggest a workaround into Davical (https://github.com/DAViCal/davical/pull/6#issuecomment-17223279), but I think that this issue should be fixed into Agendav.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants