Bug 689786

Summary: RFE: yum history should not mismatch deleted users
Product: Red Hat Enterprise Linux 6 Reporter: Karel Srot <ksrot>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: mkhusid
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-26 22:44:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Karel Srot 2011-03-22 12:59:16 UTC
Description of problem:

yum history is obviously using UID to identify the user in the  transaction. It would be better if also the login would be stored. In case the user is deleted and a new one receives the same UID, transtactions performed by the old user are assigned to the new one in the history.
If yum would store also the login, it could compare the login if the current user and inform that the transaction has been done by an already removed user.

I think it is not necessary to store more details about the user, the login is usualy enough to identify the user using other evidence.

Actual results:

1. I have several transactions made by user IlikeMyLongName...

# yum history list
Loaded plugins: refresh-packagekit, rhnplugin
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   189 | <IlikeMyLongNameSoMuchEv | 2011-03-22 08:37 | Erase          |    1   
   188 | <IlikeMyLongNameSoMuchEv | 2011-03-22 08:36 | Install        |    1   
   187 | <IlikeMyLongNameSoMuchEv | 2011-03-22 08:35 | Erase          |    1   
   186 | <IlikeMyLongNameSoMuchEv | 2011-03-22 08:31 | Install        |    1   

2. Now I delete this user account and add a new acount "myuser" which receives the same uid. I let "myuser" do a new transaction.

# yum history list
Loaded plugins: refresh-packagekit, rhnplugin
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   190 | Me <myuser>              | 2011-03-22 08:42 | Install        |    1   
   189 | Me <myuser>              | 2011-03-22 08:37 | Erase          |    1   
   188 | Me <myuser>              | 2011-03-22 08:36 | Install        |    1   
   187 | Me <myuser>              | 2011-03-22 08:35 | Erase          |    1   
   186 | Me <myuser>              | 2011-03-22 08:31 | Install        |    1   

old transactions are assigned to the new user


Expected results:

something like

# yum history list
Loaded plugins: refresh-packagekit, rhnplugin
ID     | Login user               | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   190 | Me <myuser>              | 2011-03-22 08:42 | Install        |    1   
   189 | REMOVED: <IlikeMyLongNam | 2011-03-22 08:37 | Erase          |    1   
   188 | REMOVED: <IlikeMyLongNam | 2011-03-22 08:36 | Install        |    1   
   187 | REMOVED: <IlikeMyLongNam | 2011-03-22 08:35 | Erase          |    1   
   186 | REMOVED: <IlikeMyLongNam | 2011-03-22 08:31 | Install        |    1

Comment 2 RHEL Program Management 2011-05-26 22:44:38 UTC
Product Management has reviewed and declined this request.  You may appeal this
decision by reopening this request.