ics-py / ics-py

Pythonic and easy iCalendar library (rfc5545)

Home Page:http://icspy.readthedocs.org/en/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: A VALARM must have at least one DESCRIPTION

rscmbbng opened this issue · comments

Parsing a Nextcloud calendar throws the error in the Issue title. Because multiple Nextcloud versions are affected (nextcloud/calendar#4490), I am also opening an issue here to track it.

ics-py version: 0.7.1

From the RFC https://www.rfc-editor.org/rfc/rfc5545#section-3.6.6

dispprop   = *(
                  ;
                  ; The following are REQUIRED,
                  ; but MUST NOT occur more than once.
                  ;
                  action / description / trigger /
                  ;
                  ; 'duration' and 'repeat' are both OPTIONAL,
                  ; and MUST NOT occur more than once each;
                  ; but if one occurs, so MUST the other.
                  ;
                  duration / repeat /
                  ;
                  ; The following is OPTIONAL,
                  ; and MAY occur more than once.
                  ;
                  x-prop / iana-prop

This is a required field for a display property like a reminder. I think you were correct to file this bug on next cloud if it is not making valid exports.

commented

It seems like nextcloud is fixing it on their side, i'm closing it here :)