-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ics import: duplicate UIDs #799
Comments
Hi @andreheuer, could you provide us with a snippet of the ics file (especially Übung A to E)? Per specification the In your case I suspect you have a repeating event (e.g. weekly) and modified the subsequent events (e.g. change the title). In such cases the For the case these are repeating events, the simplest fix is to recreate the events (B, C, E) in the source (Google Calendar). |
Hey @andreheuer , please also add, if you are using composer mode?! Non-composer installation use https://github.com/lochmueller/calendarize/blob/master/Classes/Ical/DissectEventAdapter.php and composer based use this one: https://github.com/lochmueller/calendarize/blob/master/Classes/Ical/VObjectEventAdapter.php The first one (ICalDissect) is very old and I suggest using composer and a more modern ICS perser like the second one. Regards, |
Hi @okmiim,
This is exactly the case. Thank you. So looks like, the only solution is to recreate the events (which are in fact a lot) :-(
I am using a composer mode installation. Thank you both! |
Hey @andreheuer ,
Regards, |
Note to @lochmueller idea: as a side-effect it causes duplicate events. One recurrent event from the base event with |
Working on #774 I stumbled upon |
I am using the import functionality to import an ICS file from Google Calendar. Now, I was wondering why not all events are being imported, so I debugged into the import function. As per my understanding, the update-function uses the UID of the VEVENT as primary key to identify the event to be updated. However, the UID in the ics file does not have to be unique, but can reference other VEVENTs. As a result, by iterating over the events to be updated (or imported), the same event in Typo3 will be updated even though the VEVENT is in fact a different one.
To test this, I have amended ImportSingleIcalEventListener.php to validate as follows:
then deleted all events and triggered the import:
As you can see, Übung C and Übung E was updated and not added (as it should be).
Is there any idea how to fix this?
The text was updated successfully, but these errors were encountered: