[kronolith] Kronolith iCal export generates output violating RFC5545

Jan Schneider jan at horde.org
Mon Mar 5 09:34:43 UTC 2012


Zitat von Carsten Schumann <grypho at tempus-vivit.net>:

> Am 05.03.2012 09:37, schrieb Jan Schneider:
>> Zitat von Carsten Schumann <grypho at tempus-vivit.net>:
>>
>>> Hi everyone,
>>>
>>> while playing with iCal4j under Android I discovered that  
>>> kronolith  generates output which is violating RFC5545.
>>>
>>> In the .ics file one of my appointments reads:
>>>
>>> BEGIN:VEVENT
>>> DTSTART:20111024T151500Z
>>> DTEND:20111024T163000Z
>>> DTSTAMP:20120304T202030Z
>>>
>>> UID:20CD3890-7228-4D06-A305-3BF4A9B8EB69:E306E14E-FBB6-49FE-B37F-8CB3035CCB
>>> 18
>>> CREATED:20111010T180609Z
>>> LAST-MODIFIED:20111010T180609Z
>>> SUMMARY:Test
>>> CATEGORIES:Kalender
>>> CLASS:PUBLIC
>>> STATUS:CONFIRMED
>>> TRANSP:OPAQUE
>>> RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=;UNTIL=20111219T225959Z
>>> END:VEVENT
>>>
>>>
>>> According to RFC5545 (http://tools.ietf.org/html/rfc5545#page-38),  
>>>  the RULE line reads
>>>
>>> recur           = recur-rule-part *( ";" recur-rule-part )
>>>
>>> with
>>>
>>> recur-rule-part = ( "FREQ" "=" freq )
>>>                       / ( "UNTIL" "=" enddate )
>>>                       / ( "COUNT" "=" 1*DIGIT )
>>>                       / ( "INTERVAL" "=" 1*DIGIT )
>>>                       / ( "BYSECOND" "=" byseclist )
>>>                       / ( "BYMINUTE" "=" byminlist )
>>>                       / ( "BYHOUR" "=" byhrlist )
>>>                       / ( "BYDAY" "=" bywdaylist )
>>>                       / ( "BYMONTHDAY" "=" bymodaylist )
>>>                       / ( "BYYEARDAY" "=" byyrdaylist )
>>>                       / ( "BYWEEKNO" "=" bywknolist )
>>>                       / ( "BYMONTH" "=" bymolist )
>>>                       / ( "BYSETPOS" "=" bysplist )
>>>                       / ( "WKST" "=" weekday )
>>>
>>>
>>> and
>>>
>>> bywdaylist  = ( weekdaynum *("," weekdaynum) )
>>>
>>> which means "BYDAY=" is invalid as the list requires at least one element.
>>>
>>> I'm using the most recent kronolith(3.0.15) and horde(4.0.14) versions.
>>
>> And which recurrence rule *is* this event actually using?
>>
>> Jan.
>
> Hi Jan,
>
> see my attached screenshot.
>
> I know, that rule does not make sense since there will be no  
> repetitions when no weekday is selected BUT nevertheless this should  
> not result in an unparsable ical file.

At least you know now that it's your own fault ;)

> Either this issue should be catched when the event is being entered  
> or the ical exporter should omit this empty list.

Agreed. Please create a bug report.

Jan.

-- 
The Horde Project
http://www.horde.org/




More information about the kronolith mailing list