Project

General

Profile

Actions

Bug #2489

closed

API: user with token can't be deleted

Added by Alexander Watzinger 11 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2025-02-21
Estimated time:
4.00 h
Found in version:

Description

I noticed that a user can't be deleted if a corresponding token exists.
Problem is most likely that a foreign key (user_id) was used without specifying an "on delete cascade" trigger.

This has to be fixed in the install and upgrade SQL.

Usually bugs have the highest priority but in this case I would like to wait for other database changes because having to upgrade the database just for that seems a little overkill.

Actions #2

Updated by Alexander Watzinger 7 months ago

  • Status changed from Assigned to In Progress
  • Estimated time set to 4.00 h
Actions #3

Updated by Alexander Watzinger 7 months ago

  • Status changed from In Progress to Closed

Is fixed in the develop branch. A database upgrade for this is necessary but will be taken care of by the update script.

Actions

Also available in: Atom PDF