Bug 545585 - Order of sudoers entries changes at random in sudoers resource
Summary: Order of sudoers entries changes at random in sudoers resource
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: RHQ Project
Classification: Other
Component: Configuration
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-08 21:43 UTC by Steve Salevan
Modified: 2014-05-16 20:11 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-16 20:11:18 UTC
Embargoed:


Attachments (Terms of Use)

Description Steve Salevan 2009-12-08 21:43:28 UTC
Description of problem:
If a user adds multiple records to /etc/sudoers which are detected by the RHQ sudoers resource, the list of records will be randomized upon each click of the "Configure" tab

Version-Release number of selected component (if applicable):
RHQ, linux-config branch, 12/8 git pull

How reproducible:
Always

Steps to Reproduce:
1. Set up an RHQ agent and point it to an RHQ server
2. Edit /etc/sudoers with visudo and add multitudinous valid aliases to it, such as the following:

Cmnd_Alias     PAGERS= /bin/*, /usr/bin/less
rhqadmin  ALL = (ALL) NOPASSWD: PAGERS

Host_Alias     SERVERS = host1,host2
rhqadmin  SERVERS = (ALL) NOPASSWD: ALL

User_Alias     ADMINS = rhqadmin
ADMINS     ALL = (ALL) NOPASSWD: ALL

rhqadmin host1=(ALL)  /bin/*

3. Access the platform corresponding to this machine, access its sudoers resource, and click the Configure tab multiple times
  
Actual results:
Ordering of sudoers entries changes upon each tab click and 'view' button functionality is deterministic (random sudoers entry chosen for editing instead of intended entry)

Expected results:
Ordering of sudoers entries and 'view' button functionality consistent

Additional info:

Comment 1 wes hayutin 2010-02-16 16:57:53 UTC
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

keyword:
new = Tracking + FutureFeature + SubBug

Comment 2 wes hayutin 2010-02-16 17:02:53 UTC
making sure we're not missing any bugs in rhq_triage


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