Etar-Group / Etar-Calendar

Android open source calendar
https://f-droid.org/packages/ws.xsoh.etar/
GNU General Public License v3.0
2.06k stars 393 forks source link

Handling the event STATUS property #201

Open patricktokeeffe opened 7 years ago

patricktokeeffe commented 7 years ago

As noted in this comment, event statuses are not always handled correctly. I'm using Etar (1.0.10) + Davdroid (1.4.0.3-ose) + Owncloud (8.x), and I observe odd handling of the STATUS property:

  1. Create event using third-party client (in my case, Lightning/Thunderbird)
  2. Edit event in Etar
  3. Observe status is now "Tentative"

The problem appears to hinge on the original event not having any status specified:

2017-03-23 13_52_18-new issue etar-group_etar-calendar - chromium

BEGIN:VEVENT
CREATED:20170323T202138Z
LAST-MODIFIED:20170323T202150Z
DTSTAMP:20170323T202150Z
UID:c2606d80-deab-4c5f-8a89-71ef56445976
SUMMARY:test event
DTSTART;TZID=America/Los_Angeles:20170330T140000
DTEND;TZID=America/Los_Angeles:20170330T150000
TRANSP:OPAQUE
CLASS:PUBLIC
END:VEVENT

After editing the event with Etar, there is a new property STATUS which has the (annoying) default value of TENTATIVE.

Side note: a second new property SEQUENCE is also added, and the properties LAST-MODIFIED and TRANSP are both removed.

BEGIN:VEVENT
CREATED:20170323T202138Z
DTSTAMP:20170323T202520Z
UID:c2606d80-deab-4c5f-8a89-71ef56445976
SUMMARY:test event
STATUS:TENTATIVE
DTSTART;TZID=America/Los_Angeles:20170330T140000
DTEND;TZID=America/Los_Angeles:20170330T160000
SEQUENCE:1
CLASS:PUBLIC
END:VEVENT

The iCal spec does not indicate which, if any, value is the correct default for STATUS property. I believe the correct behavior on Etar's part is to ignore this property if it doesn't exist (not to create it and set it to an arbitrary value).

Inrumpo commented 2 years ago

I'm experiencing a similar issue: Creating an event in Etar on Android 11 (CalyxOS) will display it as "tentative" in Thunderbird. I then have to go to Tunderbird and set all those events to "confirmed" manually.

acavalin commented 11 months ago

I'm observing this problem when using Etar to move an externally created event. Is it possible to have an option "Default status" in the Settings menu and use its value when the field is not present in the event? Thank you :pray: