Skip to content

[Bug]: Importing an event is not possible if an event with the same UID exists in the trash #53262

Open

Description

@kesselb

Bug description

Importing an .ics file is not possible if an event with the same UID exists in the calendar trash bin. This issue is a regression from pull request #51924, caused by the unique index across calendarid, calendartype, and uid.

Steps to reproduce

  1. Import a calendar event into the calendar.
  2. Delete the event.
  3. Verify that the event is in the trash bin.
  4. Attempt to import the same .ics file again.
  5. 💥

Expected behavior

No error ;)

Nextcloud Server version

master

Additional info

Possible fixes:

  1. Extend the index to include the deleted_at column.
  2. Revert the calendar export changes and replace them with a simpler version for now (see discussion feat: Calendar Import #51925 (comment)).

Activity

  1. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jun 2, 2025
  2. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jun 2, 2025
  3. kesselb commented on Jun 2, 2025

    @kesselb
    ContributorAuthor
  4. ChristophWurst commented on Jun 2, 2025

    @ChristophWurst
    Member

    Bummer. What was the reason against going by URI as suggested initially at #51924 (review) @SebastianKrupinski? edit: it's right there

    No we can't use the URI, the URI is never exported, it is a internal reference so there is no way for any automation to know about it.

  5. SebastianKrupinski commented on Jun 2, 2025

    @SebastianKrupinski
    Contributor

    We just need to modify the index to add the deleted_at as the third reference.

  6. moved this from To triage to Confirmed in 🧑‍🤝‍🧑 Community triageon Jul 8, 2025
  7. added theissue type on Jul 14, 2025
  8. moved this to 🧭 Planning evaluation in 💌 📅 👥 Groupware teamon Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions