Skip to content

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

@kesselb

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)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    🧭 Planning evaluation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions