[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Inf-IT DAVcl] Re: Bug in CalDav-Sync with deletion of repeating events


Hi Felix,

I hope you don't mind that I include the CalDavZAP mailing list (I've BBC'ed you).

The problem is that Android doesn't actually delete instances of a recurring event. Instead Android creates an exception and sets the status to "cancelled". My app synchronizes the event just like that. The app could try to fix that automatically, but I think converting a "cancelled" exception to a deleted event would be wrong. The app should sync events, not modify them.

What you see in CalDavZAP is a bug in the exception handling of CalDavZap. I've attached an event that shows the problem. It's a recurring event (it recurs every Tuesday, Wednesday and Thursday). The instances on 2013-07-03 and 2013-07-04 have been deleted in Android, i.e. their status is set to "CANCELLED".

CalDavZap shows the original event + the exceptions. I think the correct behavior would be to show the exception crossed out. That's what most clients to with cancelled events.

cheers

Marten

Am 02.07.2013 13:14, schrieb Felix:
Hi there,

i am using caldav-sync on cyanogenmod 10.1 with an davical-server
1.1.1-1 on debian and caldavzap as web-frontend.
When i have a repeating event and delete one occurence of it in android,
caldavzap still shows the deleted event in addition to a clone of the
event without repeatitions. Android does not show these events.

Best regards,
Felix


--
Marten Gajda
Schandauer Straße 34
01309 Dresden
Germany

tel: +49 177 4427167
email: marten@xxxxxxxx
twitter: twitter.com/dmfs_org

VAT Reg. No.: DE269072391



--
Marten Gajda
Schandauer Straße 34
01309 Dresden
Germany

tel: +49 177 4427167
email: marten@xxxxxxxx
twitter: twitter.com/dmfs_org

VAT Reg. No.: DE269072391
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//dmfs.org//mimedir.icalendar//EN
BEGIN:VTIMEZONE
TZID:Europe/Amsterdam
X-LIC-LOCATION:Europe/Amsterdam
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=Europe/Amsterdam:20130702T100000
SUMMARY:Test
RRULE:FREQ=WEEKLY;COUNT=10;BYDAY=TU,WE,TH
TRANSP:OPAQUE
DURATION:PT1H
LAST-MODIFIED:20130702T114554Z
DTSTAMP:20130702T114554Z
CREATED:20130702T114554Z
UID:850bad7c-e116-4045-a2c6-ff04076c1e34
BEGIN:VALARM
TRIGGER;VALUE=DURATION:-PT1H
ACTION:DISPLAY
DESCRIPTION:Default Event Notification
X-WR-ALARMUID:a51319a4-f64e-4d2e-9d78-ba4c525308b7
END:VALARM
END:VEVENT
BEGIN:VEVENT
DTSTART;TZID=Europe/Amsterdam:20130703T100000
SUMMARY:Test
STATUS:CANCELLED
TRANSP:TRANSPARENT
DTEND;TZID=Europe/Amsterdam:20130703T110000
LAST-MODIFIED:20130702T114725Z
DTSTAMP:20130702T114725Z
SEQUENCE:1
RECURRENCE-ID:20130703T080000Z
UID:850bad7c-e116-4045-a2c6-ff04076c1e34
BEGIN:VALARM
TRIGGER;VALUE=DURATION:-PT1H
ACTION:DISPLAY
DESCRIPTION:Default Event Notification
X-WR-ALARMUID:c5680725-1bb9-4625-8fbb-dad492931ab0
END:VALARM
END:VEVENT
BEGIN:VEVENT
DTSTART;TZID=Europe/Amsterdam:20130704T100000
SUMMARY:Test
STATUS:CANCELLED
TRANSP:TRANSPARENT
DTEND;TZID=Europe/Amsterdam:20130704T110000
LAST-MODIFIED:20130702T114939Z
DTSTAMP:20130702T114939Z
SEQUENCE:1
RECURRENCE-ID:20130704T080000Z
UID:850bad7c-e116-4045-a2c6-ff04076c1e34
BEGIN:VALARM
TRIGGER;VALUE=DURATION:-PT1H
ACTION:DISPLAY
DESCRIPTION:Default Event Notification
X-WR-ALARMUID:6e1cf221-8b20-4551-a2aa-ea237f4c1ecf
END:VALARM
END:VEVENT
END:VCALENDAR