Bug 689786 - RFE: yum history should not mismatch deleted users
Summary: RFE: yum history should not mismatch deleted users
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-22 12:59 UTC by Karel Srot
Modified: 2014-01-21 06:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-26 22:44:38 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.