Bug 697857 - Reports->Configuration History: Delete button is disabled for a user having configure write permission
Summary: Reports->Configuration History: Delete button is disabled for a user having c...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks: rhq4
TreeView+ depends on / blocked
 
Reported: 2011-04-19 13:10 UTC by Sunil Kondkar
Modified: 2011-10-04 19:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-19 16:30:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Sunil Kondkar 2011-04-19 13:10:44 UTC
Description of problem:
Delete button is disabled for a user having configure write permission in Reports->Configuration History page.

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

build#1144 (Version: 4.0.0-SNAPSHOT Build Number: 50f58a4)


How reproducible:

Always

Steps to Reproduce:

1. Login to RHQ as rhqadmin.
2. Create a user and a compatible group of resources (Ex: RHQ Agent).
3. Create a role with only configure write resource permissions.
4. Assign the resource group and the user created to the role.
5. Logout and login as the user created above( with only configure write resource permissions)
6. Navigate to Reports->Configuration History.
7. Select a row and observe that the 'Delete' button is disabled.
  
Actual results:

The Delete button is disabled for a user having configure write permission.

Expected results:

The 'Delete' button should be enabled after selecting a config history and user should be able to delete resource config history in reports.

Additional info:

When the same user (with only configure_write resource permissions) navigates to the 'Configuration->History' tab of the resource, the 'Delete' button is enabled and user can delete the config history.

Comment 1 Jay Shaughnessy 2011-04-19 16:30:47 UTC
The subsystem views are cross-inventory views and currently often require a
global priv (manage_inventory) to enable buttons that perform "write"
operations.  The alternative is a costly button enable check that requires
resource level perm checking each time the selection changes.  We've opted not
to do that in these views at this time.

This could be re-opened as an RFE based on customer demand.


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