Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ICS (iCalendar) UID purpose and use

I'm creating a sync adapter towards ICS files in Java, and I have a problem recognizing the same events across new updates towards a remote file which is dynamically created.

So I thought, great I can just use the UID, it turns out it's randomly generated every time the ICS file is downloaded. So what is the point of UID property if it's randomly generated everytime? Why not just assume every ICS event that exists in the universe is unique? Is it the ICS file generators fault for not using the same UID for it's same events (I have seen 2 ICS file providers do this, 2 schools)?

So what's the standard way of recognizing the same event across ICS file updates, instead of wiping the whole calendar and re-importing?

like image 741
user1004147 Avatar asked Sep 22 '14 07:09

user1004147


1 Answers

RFC5545 section on UID ([link][1]) is aligned with your expectations and unfortunately not with the implementation on the server you are connecting to:

Property Name: UID

Purpose: This property defines the persistent, globally unique identifier for the calendar component.

Unfortunately there is nothing really which can be done against bad server side implementations... [1]: https://www.rfc-editor.org/rfc/rfc5545#section-3.8.4.7

like image 161
Auberon Vacher Avatar answered Oct 18 '22 09:10

Auberon Vacher