MozillaZine

Caldav Problem with duplicated calendar items... solved :)

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
MountainBilly
 
Posts: 15
Joined: March 3rd, 2014, 2:38 am

Post Posted August 11th, 2019, 3:44 pm

Hi,
i am using the latest Thunderbird/Lightning together with a davical server, infcloud (http://www.inf-it.com) as caldav webclient and CalDAV-Sync (dmfs.org) as Android client.

Recently some of our users pointed me to a problem with duplicated calendar events in infcloud - only the last one apears also in Thunderbird - all the previous copies are not synchronized to the calendar!
With CalDAV-Sync there is no problem with the duplicated events.

When infcloud duplicates an event it copies the whole vcard entry, changes the "DATES" and "SUMMARY" and does not change the "CREATED" and the "UID" fields!!!

Could this be a problem with the calendar in Thunderbird? Does Thunderbird mandatory wants to have different creation and or UIDs?

Example:
Remember - after i made the first entry and duplicated it 2 times only the last one is also be seen in Thunderbird - but they are seen in my webclient, my android calendar and on Apple IOS!!!

*1st one made:
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
CREATED:20190811T212843Z
LAST-MODIFIED:20190811T212843Z
DTSTAMP:20190811T212843Z
UID:3dbpusdm-bpu8-ifiq-kjb1-xktoehrbc0pt
SUMMARY:test
TRANSP:OPAQUE
CLASS:PUBLIC
DTSTART;VALUE=DATE:20190820
DTEND;VALUE=DATE:20190821
END:VEVENT
PRODID:-//Inf-IT//InfCloud 0.13.1//EN
END:VCALENDAR

*duplicate of 1st one:
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
CREATED:20190811T212843Z
LAST-MODIFIED:20190811T212909Z
DTSTAMP:20190811T212909Z
UID:3dbpusdm-bpu8-ifiq-kjb1-xktoehrbc0pt
SUMMARY:test-copy
TRANSP:OPAQUE
CLASS:PUBLIC
DTSTART;VALUE=DATE:20190821
DTEND;VALUE=DATE:20190822
END:VEVENT
PRODID:-//Inf-IT//InfCloud 0.13.1//EN
END:VCALENDAR


Duplicate of the duplicate:
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
CREATED:20190811T212843Z
LAST-MODIFIED:20190811T213135Z
DTSTAMP:20190811T213135Z
UID:3dbpusdm-bpu8-ifiq-kjb1-xktoehrbc0pt
SUMMARY:test-copycopy
TRANSP:OPAQUE
CLASS:PUBLIC
DTSTART;VALUE=DATE:20190822
DTEND;VALUE=DATE:20190823
END:VEVENT
PRODID:-//Inf-IT//InfCloud 0.13.1//EN
END:VCALENDAR


Has anybody any ideas about this problem?
thx!

MountainBilly
 
Posts: 15
Joined: March 3rd, 2014, 2:38 am

Post Posted August 14th, 2019, 3:39 am

The Problem was the same UID in all the duplicated events....

Jan Mate from (Infcloud,CalDavZAP) solved the problem for the lates release of the application (v0.13.1) by providing a patch.
The patch urges the application to build new UIDs every time an entry is duplicated.

You can find the patch for Infcloud here:
https://www.inf-it.com/fixes/interface.js.diff

(as always - don´t forget to execute the cache_update.sh script aber applying the patch, or change the timestamp on line 2 in "cache.manifest" to the actual one by hand)


If you want to do the patch by hand, edit the function "function duplicateEvent" in interface.js the following way:

add
vCalendar.tplM['VTcontentline_UID']={}; // force generate new UID

in row 4748 and 4764

(as always - don´t forget to execute the cache_update.sh script aber applying the patch, or change the timestamp on line 2 in "cache.manifest" to the actual one by hand)


hope, this could help...

Return to Calendar


Who is online

Users browsing this forum: No registered users and 2 guests