Project

General

Profile

Actions

Bug #20899

closed

Unable to delete default admin user

Added by Daniel Lobato Garcia over 6 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Notifications
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #20316: unable to delete user. leads to foreign key violationClosedOhad LevyActions
Actions #1

Updated by Marek Hulán over 6 years ago

  • Subject changed from Unable to delete default admin user to Unable to delete default admin user
  • Category set to Notifications
Actions #2

Updated by Marek Hulán over 6 years ago

Daniel, were you able to reproduce? It seems like a duplicate of #20316

Actions #3

Updated by Marek Hulán over 6 years ago

  • Status changed from New to Duplicate

I just verified the fix. This is a duplicate.

Actions #4

Updated by Marek Hulán over 6 years ago

  • Related to Bug #20316: unable to delete user. leads to foreign key violation added
Actions

Also available in: Atom PDF