Project

General

Profile

Bug #12804

Deleting users who created activation keys deletes all associated keys

Added by Thomas McKay about 3 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1291271
Description of problem:
If you delete any user who has previously created an activation key that still currently exists, the key(s) will be deleted as well.

Version-Release number of selected component (if applicable): 6.1.4

How reproducible: 100%

Steps to Reproduce:
1. Create a test user of any name (I set role as admin)
2. Login to this user and create an activation key.
3. Logout of the test user, back in as another admin, and delete the user.
4. Check the activation key list.

Actual results:
Newly created activation key will now be gone.

Expected results:
Activation key should still exist.

Additional info:
This association appears to be inside of the foreman database, inside the katello_activation_key table. The 'user_id' column has the number of the user who created the activation key. If you set this id to any other user prior to deleting the one who currently owns the key, the key will continue to exist after user deletion.

Associated revisions

Revision 01e8b421 (diff)
Added by Thomas McKay about 3 years ago

fixes #12804 - do not delete activation keys on user delete

nullify dependent act keys

Revision a45725ad
Added by Thomas McKay about 3 years ago

Merge pull request #5665 from thomasmckay/12804-ak-user

fixes #12804 - do not delete activation keys on user delete

History

#1 Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5665 added

#2 Updated by Eric Helms about 3 years ago

  • Legacy Backlogs Release (now unused) set to 70
  • Triaged changed from No to Yes

#3 Updated by Thomas McKay about 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF