lochmueller / calendarize

📆 Best TYPO3 Calendar ever 📆
http://typo3.org/extensions/repository/view/calendarize
75 stars 84 forks source link

fixing problem with office365 event UID #739

Closed dercodercom closed 1 year ago

dercodercom commented 1 year ago

I use importer for our appointments and take here an iCAL file from an Office365 calendar and here are apparently the UIDs longer than 100 characters, so it happens when importing that he can not match the appointments and thus always adds them and you see them multiple times.

I have looked at the UIDs and they are always 113 characters long, so I would suggest that they be increased to 150 characters.

Here is an example of such a UID: 040000008200E00074C5B7101A82E008000000004AEAA27C9C3FD90100000000000010000000E0824392CEF5CF4D9CDBD3AD68431628

lochmueller commented 1 year ago

Thanks @dercodercom for the fix. Merged.

okmiim commented 1 year ago

Hi @dercodercom, could you specify, if (a) a new event is create or (b) an additional configuration is added to an event? And which calendarize version are you using? Did the first import happen before 12.0.2? So in this case they might not match up, since the implementation changed.

For events with UIDs longer than 100 characters we a mechanism in place, which creates a hash based on the UID. It is available since 12.0.2 (be1308810c8a8f84a644a6a7d86269986541fefa) https://github.com/lochmueller/calendarize/blob/b6b6f79b3a809a9b24cca7b413d67a11c97e7711/Classes/EventListener/ImportSingleIcalEventListener.php#L63