calendar-app is generating invalid RECUR values in RRULE property

Bug #1440583 reported by Charles Kerr
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Calendar App
Fix Released
Undecided
Gary.Wang
qtorganizer5-eds (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I created a calendar event for April 24 at 1:35 PM, with a reminder the day before. This is the ~/.local/share/evolution/calendar/system/calendar.ics file that was created, note the X-LIC-ERROR.

Tested with calendar-app 0.4.600 on krillin rtm r263.

BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//Ximian//NONSGML Evolution Calendar//EN
VERSION:2.0
X-EVOLUTION-DATA-REVISION:2015-04-05T19:06:51.703615Z(2)
BEGIN:VEVENT
UID:20150405T190651Z-4388-32011-1709-1@ubuntu-phablet
DTSTAMP:20150405T190651Z
DTSTART:20150424T183500Z
DTEND:20150424T193500Z
X-LIC-ERROR;X-LIC-ERRORTYPE=VALUE-PARSE-ERROR:Can't parse as RECUR value
 in RRULE property. Removing entire property: ERROR: No Value
SUMMARY:London Sprint Flight
DESCRIPTION:Time to pack!
CREATED:20150405T190651Z
LAST-MODIFIED:20150405T190651Z
BEGIN:VALARM
X-EVOLUTION-ALARM-UID:20150405T190651Z-4388-32011-1709-2@ubuntu-phablet
ACTION:AUDIO
TRIGGER;VALUE=DURATION;RELATED=START:-P1D
REPEAT:3
DURATION:PT2M
END:VALARM
BEGIN:VALARM
X-EVOLUTION-ALARM-UID:20150405T190651Z-4388-32011-1709-3@ubuntu-phablet
ACTION:DISPLAY
DESCRIPTION:London Sprint Flight
TRIGGER;VALUE=DURATION;RELATED=START:-P1D
REPEAT:3
DURATION:PT2M
END:VALARM
END:VEVENT
END:VCALENDAR

Related branches

Charles Kerr (charlesk)
description: updated
Revision history for this message
Mihir Soni (mihirsoni) wrote :

Hi,
Thank you for the bug , could you provide little more information ?

what was the Recurrence you have selected ?

Revision history for this message
Charles Kerr (charlesk) wrote :

Hi Mihir, it was a nonrepeating event.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtorganizer5-eds (Ubuntu):
status: New → Confirmed
Revision history for this message
Gary.Wang (gary-wzl77) wrote :

For event occurs once, we can see warning info in ~/.local/share/evolution/calendar/system/calendar.ics
"X-LIC-ERROR;X-LIC-ERRORTYPE=VALUE-PARSE-ERROR:Can't parse as RECUR value
 in RRULE property. Removing entire property: ERROR: No Value"

Reason for this is because for event occurs once, we assign default recurrence rule with RecurrenceRule.Invalid to this event.Basically, recurrenceRules for nonrepeating event should be an empty array in this case.
App bug, unrelated to qtorganizer5-eds, which works fine.

Expect result:
BEGIN:VEVENT
UID:20150711T022342Z-22898-32011-1667-1@ubuntu-phablet
DTSTAMP:20150711T022342Z
DTSTART:20150711T023000Z
DTEND:20150711T033000Z
SUMMARY:Bugggggggy
CREATED:20150711T022342Z
LAST-MODIFIED:20150711T022342Z
BEGIN:VALARM
X-EVOLUTION-ALARM-UID:20150711T022342Z-22898-32011-1667-2@ubuntu-phablet
ACTION:AUDIO
TRIGGER;VALUE=DURATION;RELATED=START:-PT15M
END:VALARM
BEGIN:VALARM
X-EVOLUTION-ALARM-UID:20150711T022342Z-22898-32011-1667-3@ubuntu-phablet
ACTION:DISPLAY
TRIGGER;VALUE=DURATION;RELATED=START:-PT15M
END:VALARM
END:VEVENT

Actual result:
BEGIN:VEVENT
UID:20150711T022342Z-22898-32011-1667-1@ubuntu-phablet
DTSTAMP:20150711T022342Z
DTSTART:20150711T023000Z
DTEND:20150711T033000Z
X-LIC-ERROR;X-LIC-ERRORTYPE=VALUE-PARSE-ERROR:Can't parse as RECUR value ^M
 in RRULE property. Removing entire property: ERROR: No Value
SUMMARY:Bugggggggy
CREATED:20150711T022342Z
LAST-MODIFIED:20150711T022342Z
BEGIN:VALARM
X-EVOLUTION-ALARM-UID:20150711T022342Z-22898-32011-1667-2@ubuntu-phablet
ACTION:AUDIO
TRIGGER;VALUE=DURATION;RELATED=START:-PT15M
END:VALARM
BEGIN:VALARM
X-EVOLUTION-ALARM-UID:20150711T022342Z-22898-32011-1667-3@ubuntu-phablet
ACTION:DISPLAY
TRIGGER;VALUE=DURATION;RELATED=START:-PT15M
END:VALARM
END:VEVENT

Also Plz check the test report by running unit tests in qtorganizer5-eds
https://bugs.launchpad.net/ubuntu-calendar-app/+bug/1437305/comments/6

Changed in ubuntu-calendar-app:
assignee: nobody → Gary.Wang (gary-wzl77)
status: New → In Progress
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-calendar-app at revision 707, scheduled for release in ubuntu-calendar-app, milestone rtm14

Changed in ubuntu-calendar-app:
status: In Progress → Fix Committed
Changed in ubuntu-calendar-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.