Bug #20899
closedUnable to delete default admin user
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1490305
Description of problem: We were trying to delete default admin user with another user having all permissions and was administrator. But while deleting default user, it shows error as " ERROR: update or delete on table "users" violates foreign key constraint "fk_rails_51975e21a8" on table "notification_recipients" DETAIL: Key (id)=(3) is still referenced from table "notification_recipients"."
How reproducible: always
Steps to Reproduce:
1. Login to satellite with default admin user
2. Create another user having all permissions and make administrator
3. Logout from admin
4. Login using another user created
5. Delete default admin user.
Actual results:
Not able to delete default admin user. It shows error as " ERROR: update or delete on table "users" violates foreign key constraint "fk_rails_51975e21a8" on table "notification_recipients" DETAIL: Key (id)=(3) is still referenced from table "notification_recipients"."
Additional info: Any User with administrator role can delete another user with administrator role but in case of deleting default admin it throws error.
Updated by Marek Hulán over 7 years ago
- Subject changed from Unable to delete default admin user to Unable to delete default admin user
- Category set to Notifications
Updated by Marek Hulán over 7 years ago
Daniel, were you able to reproduce? It seems like a duplicate of #20316
Updated by Marek Hulán over 7 years ago
- Status changed from New to Duplicate
I just verified the fix. This is a duplicate.
Updated by Marek Hulán over 7 years ago
- Related to Bug #20316: unable to delete user. leads to foreign key violation added