Bug 643006 - Resource tree nodes display right click menu option 'Resource Configuration' as enabled for a user without configure_read permission
Summary: Resource tree nodes display right click menu option 'Resource Configuration' ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.0.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Jay Shaughnessy
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks: rhq4 gwt-tree
TreeView+ depends on / blocked
 
Reported: 2010-10-14 12:56 UTC by Sunil Kondkar
Modified: 2011-05-24 01:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Sunil Kondkar 2010-10-14 12:56:52 UTC
Description of problem:

If user does not have 'Configure-read' permissions for resources, the 'Resource Configuration' menu item should be disabled in the right click menu for the resource. At present it is enabled. Clicking on the 'Resource Configuration' menu option displays below error in the server log:

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/coregui]] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract org.rhq.core.domain.configuration.Configuration org.rhq.enterprise.gui.coregui.client.gwt.ConfigurationGWTService.getResourceConfiguration(int)' threw an unexpected exception: java.lang.RuntimeException: org.rhq.enterprise.server.authz.PermissionException:User [testuser] does not have permission to view resource configuration for [Resource[id=10002, type=RHQ Agent, key=RHQ Agent, name=RHQ Agent, parent=sunillaptop, version=4.0.0-SNAPSHOT]]

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

rhq build#413


How reproducible:

Always

Steps to Reproduce:

1.Login to Jon.
2.Create a group of resources like rhq agent etc.
3.Create a role having only 'Configure-read' permissions and assign the resource group created.
4.Create a new user and assign the role created above.
5.Login to Jon as newly created user.
6.Click on 'Inventory' menu item.
7.Click on 'Resource Inventory->Servers'.
8.Click on the resource (Ex: Rhq Agent)
9.Right click on the resource node in the resource tree.(Ex: Rhq Agent)
10.Verify 'Resource Configuration' menu item in the right click menu
  
Actual results:

The 'Resource Configuration' right click menu option is enabled for a user without configure_read permission.

Expected results:

If user does not have 'Configure-read' permissions for resources, the 'Resource Configuration' menu item should be disabled in the right click menu for the resource.

Additional info:

Comment 1 Jay Shaughnessy 2011-02-14 17:23:14 UTC
Fixed.

Comment 2 Sunil Kondkar 2011-04-07 11:45:50 UTC
Verified on build#1129 (Version: 4.0.0-SNAPSHOT Build Number: 5a40add)

The 'Resource Configuration' right click menu item is disabled for a user without 'Configure-read' permissions for resources.

Marking as verified.

Comment 3 Corey Welton 2011-05-24 01:16:49 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 4 Corey Welton 2011-05-24 01:16:50 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 5 Corey Welton 2011-05-24 01:16:51 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 6 Corey Welton 2011-05-24 01:17:11 UTC
Bookkeeping - closing bug - fixed in recent release.


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