Skip to content

Old, removed tasklist slugs are stuck in the database and can never be used again #61940

Description

@martonlente

Steps to reproduce

  1. Create a new tasklist with the name "Example". Its tasklist slug becomes example.
  2. Remove the tasklist "Example".
  3. Create a new tasklist, with the same name as in step 1.) "Example". The example-1 tasklist slug is assigned instead of example.

Expected behavior

When removing tasklists in Nextcloud Tasks (either via Nextcloud's web UI or tasks clients), their respective slugs should be cleaned up and removed from the database as well. When creating a new tasklist with the same name of an old, deleted tasklist, the slug creation should work as if the user created the tasklist for the first time.

Actual behavior

Removed tasklists' slugs are not cleaned up and removed from, but stuck in the database. This makes tasklist slugs being "forever taken", so that users can't create new tasklists with slugs that have ever been used (and removed) before. See the Steps to reproduce for details.

Calendar app version

5.5.1

CalDAV-clients used

DAVx5, KDE Contact

Browser

No response

Client operating system

No response

Server operating system

No response

Web server

None

Database engine version

None

PHP engine version

None

Nextcloud version

No response

Updated from an older installed version or fresh install

None

List of activated apps


Nextcloud configuration


Web server error log


Log file


Browser log


Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions