calendar icon indicating copy to clipboard operation
calendar copied to clipboard

ICS export doesn't contain DESCRIPTION for VALARM

Open hackbaellchen opened this issue 1 year ago • 1 comments

Steps to reproduce

  1. Create an event in a calendar using the browser and add a reminder (if not added automatically)
  2. Export calendar to .ics (in my case by sharing an export link)

Expected behavior

The VALARM-field should have an editable or default (Google calendar uses "This is an event reminder") DESCRIPTION-field.

Actual behaviour

Generated event reminders VALARM are missing the DESCRIPTION-field, which is mandatory according to RFC5545.

Calendar app version

3.5.0

CalDAV-clients used

No response

Browser

Firefox 104.0.2

Client operating system

Windows 10 21H2

Server operating system

Debian 11

Web server

No response

Database engine version

No response

PHP engine version

No response

Nextcloud version

24.0.4, docker image nextcloud:24.0.4-apache

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

No response

Nextcloud configuration

No response

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

I am using the python library ics to parse the exported calendar from nextcloud. When loading, ValueError: A VALARM must have at least one DESCRIPTION is thrown.

hackbaellchen avatar Sep 08 '22 21:09 hackbaellchen

Can reproduce with ics-py 0.7.1 and Calendar 3.4.2

rscmbbng avatar Sep 10 '22 11:09 rscmbbng

It should just be about adding the description property in these two places: https://github.com/nextcloud/calendar-js/blob/c15736727eae56844b3c966ed4ae6a7f49eab042/src/components/root/abstractRecurringComponent.js#L769-L772 https://github.com/nextcloud/calendar-js/blob/c15736727eae56844b3c966ed4ae6a7f49eab042/src/components/root/abstractRecurringComponent.js#L786-L790

Apparently when the action is AUDIO the DESCRIPTION isn't required, so we need handling here (even though we don't support that in Calendar itself - yet?).

Also I wonder if we correctly add SUMMARY when action is EMAIL as well. :thinking:

tcitworld avatar Sep 30 '22 15:09 tcitworld

It should just be about adding the description property in these two places: https://github.com/nextcloud/calendar-js/blob/c15736727eae56844b3c966ed4ae6a7f49eab042/src/components/root/abstractRecurringComponent.js#L769-L772 https://github.com/nextcloud/calendar-js/blob/c15736727eae56844b3c966ed4ae6a7f49eab042/src/components/root/abstractRecurringComponent.js#L786-L790

Apparently when the action is AUDIO the DESCRIPTION isn't required, so we need handling here (even though we don't support that in Calendar itself - yet?).

Also I wonder if we correctly add SUMMARY when action is EMAIL as well. 🤔

Bless you for this Thomas, I was looking for the export function 😅

miaulalala avatar Oct 01 '22 09:10 miaulalala

Can reproduce with calendar 3.5.2 (on framagenda.org instance).

JulienPalard avatar Nov 17 '22 12:11 JulienPalard

Will be fixed by #4683

tcitworld avatar Nov 17 '22 12:11 tcitworld

Fixed by https://github.com/nextcloud/calendar/pull/4683.

st3iny avatar Dec 15 '22 12:12 st3iny