Bug 271308 - iCalendars with RDATE VALUE=PERIOD are not parsed correctly
Summary: iCalendars with RDATE VALUE=PERIOD are not parsed correctly
Status: CONFIRMED
Alias: None
Product: frameworks-kcalendarcore
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.84.0
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-19 19:21 UTC by Giuseppe Bilotta
Modified: 2022-04-13 03:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A calendar exhibiting the problem (534 bytes, text/calendar)
2011-04-19 19:21 UTC, Giuseppe Bilotta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Bilotta 2011-04-19 19:21:31 UTC
Created attachment 59138 [details]
A calendar exhibiting the problem

Version:           4.4.5 (using KDE 4.4.5) 
OS:                Linux

According to the iCalendar specification, an RDATE can have a value which is a DATETIME, DATE or PERIOD format. KCalendar correctly parses DATE and DATETIME formats, but an RDATE with VALUE=PERIOD is silently discarded.

Reproducible: Always

Steps to Reproduce:
Add the attached gpgpu.ics as a calendar and browse to April 2011

Actual Results:  
There is no event on April 20, 2011

Expected Results:  
An event on April 20, 2001, starting at 3pm and stopping at 5pm, should be present

Replacing the

RDATE;VALUE=PERIOD:20110420T150000/PT2H

line with

RDATE:20110420T150000

makes the event appear, but last 4 hours instead of the 2 hours of the actual event.
Comment 1 Denis Kurz 2016-09-24 18:52:06 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of korganizer (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Giuseppe Bilotta 2016-09-26 13:17:22 UTC
I am still seeing the issue in the latest version of korganizer as shipped currently by Debian unstable. This is version 4:16.04.3-1; note that the 4: is the epoch, so this is the KOrganizer part of KDE Applications 16.04.3
Comment 3 Denis Kurz 2016-09-26 17:59:08 UTC
Giuseppe, thanks for your assistance.
Comment 4 gjditchfield 2021-07-16 18:48:41 UTC
ICalFormatImpl::readIncidence() says
    // TODO: RDates as period are not yet implemented!
Comment 5 gjditchfield 2022-02-26 20:00:05 UTC
Commit https://invent.kde.org/frameworks/kcalendarcore/-/commit/46b21cc1f5d3519d2443b8fdabedaba0a90b4aed should have fixed this.
Comment 6 gjditchfield 2022-04-13 03:19:40 UTC
Frameworks 5.92 and KOrganizer 5.19.3 display an event on the 20th, but with a duration of 4 hours.