#781195 iceowl-extension: Importing ics-files fails when VALARM is empty

Package:
iceowl-extension
Source:
thunderbird
Submitter:
Matthias Heukäufer
Date:
2023-04-26 06:30:29 UTC
Severity:
normal
Tags:
#781195#5
Date:
2015-03-25 22:38:52 UTC
From:
To:
Dear Maintainer,

importing an ics-file from Group Office (www.group-office.com; version: 5.0.95)
with lightning results in an error for every event without an entry in the VALARM section.

[JavaScript Error: "Invalid alarm for item: e05ccbaf-c734-430e-8f9a-12e31e05f1f0 (BEGIN:VALARM

END:VALARM

) exception: [Exception... "Illegal value'Illegal value' when calling method: [calIAlarm::icalComponent]"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: resource://calendar/modules/calUtils.jsm -> file:///usr/lib/icedove/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calItemBase.js :: cIB_setItemBaseFromICS :: line 863"  data: no]"]

The VEVENT that caused this particular error message was:
BEGIN:VEVENT
UID:e05ccbaf-c734-430e-8f9a-12e31e05f1f0
DTSTAMP:20150325T170143Z
LAST-MODIFIED:20150311T104338Z
CREATED:20150311T104338Z
SUMMARY:Spiegel-TV: MSF
STATUS:CONFIRMED
X-FUNAMBOL-ALLDAY:1
DTSTART;VALUE=DATE:20150319
DTEND;VALUE=DATE:20150320
BEGIN:VALARM
END:VALARM
END:VEVENT

It seems that the error is triggered by every single event when importing the calendar as
an ics-file. When I tried to access the calendar via CalDAV, the error was only caused by
_recurring_ events without an entry in VALARM. After I had entered a reminder for every
such event, the calendar was imported without problems.

#781195#10
Date:
2015-03-27 06:27:12 UTC
From:
To:
Hello Matthias,

I'm not very familiar with RFC5545 but this sounds to me as the ICS file
is not RFC conform.
Can you test your import and validate the correctness of you files.

I found some informations for developing, testing etc. on
http://icalevents.com/support/documentation/ics-guides/

And can you append a *.ics file to this bug report so we can do some own
checks? Have you checked if there are some entrys in the Mozilla
bugrtracker? How does your *.ics file is interacting with other calendar
solutions?

Regards
Carsten

#781195#15
Date:
2015-03-27 17:05:14 UTC
From:
To:
Hi Carsten,

it seems that even though the ICal Validator accepted my calendar
without complaints, according to RFC 5545 (section 3.6.6) the ics-file
generated by Group Office is indeed not valid:

"The 'VALARM' calendar component MUST include the 'ACTION' and 'TRIGGER'
properties."

I have attached a small ics-file with a single event that generates an
error both when imported as an ics-file and when connecting to this
calendar via CalDAV.

I have filed a bug report for GroupOffice. Still I think that Lightning
should be able to handle empty VALARM sections without an error message.
Orage (xfce's calendar application) does not seem to have a problem with
these events.

On a side note: I just did another import of the invalid file into
Lightning and it seems that in spite of the error message, at least the
single event of my sample file was correctly imported. So after all, it
might just be a minor problem that is only relevant as the user is left
in doubt whether the calendar has been completely imported.

Thank you - Matthias


On Fri, 27 Mar 2015 07:27:12 +0100 Carsten Schoenert <c.schoenert@t-online.de> wrote: