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.
Newly created activation key will now be gone.
Activation key should still exist.
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.
Created redmine issue http://projects.theforeman.org/issues/12804 from this bug
Upstream bug component is Content Management
Moving to POST since upstream bug http://projects.theforeman.org/issues/12804 has been closed
Applied in changeset commit:katello|01e8b42104c8a5ff532273c52730b680fa34a4a6.
Executed the scenario as described in the initial description. After deleting the user, observed that the activation key continues to exist as desired.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.