You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Account delete fails after upgrade when its project was deleted before the upgrade #14849
An account that was added to a project with a user role (for example addUserToProject roletype=Admin), whose project was then deleted on a version without the fix from #14150, cannot be deleted after upgrading to a version with that fix. deleteAccount fails with "Unable to delete account [5], because it manages the following project(s): [1]. Please, remove the account from these projects or demote it to a regular project role first." The project named in the error is no longer listed in listProjects, so the account cannot be removed from it.
Versions
Seen when upgrading from 4.20.3.1 to the #14150 PR packages (4.20 branch), KVM, 2 hosts.
The steps to reproduce the bug
On 4.20.3.1, create an account with a User role, create a project, and add the account's user to the project with addUserToProject roletype=Admin.
Delete the project with deleteProject cleanup=true. The project is removed.
I think this issue requires some SQL changes, as mentioned in #13456.
The change itself is small, but since the issue affects all supported versions, we may need to create separate PRs targeting 4.20, 4.22 and main.
Activity
weizhouapache commentedon Nov 25, 2026
thanks @RosiKyu a lot for reporting
I think this issue requires some SQL changes, as mentioned in #13456.
The change itself is small, but since the issue affects all supported versions, we may need to create separate PRs targeting 4.20, 4.22 and main.