Bug 611760

Summary: User assigned to a role having only manage bundles permissions is not able to see any content.
Product: [Other] RHQ Project Reporter: Sunil Kondkar <skondkar>
Component: ProvisioningAssignee: Ian Springer <ian.springer>
Status: CLOSED CURRENTRELEASE QA Contact: Sunil Kondkar <skondkar>
Severity: medium Docs Contact:
Priority: urgent    
Version: 3.0.0CC: ccrouch, ian.springer
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:46:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 577210    

Description Sunil Kondkar 2010-07-06 12:31:26 UTC
Description of problem:

If a role has only 'Manage bundles' permission, user assigned to this role is not able to see the link Administrator->Content after login to jon.

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

How reproducible:

Steps to Reproduce:

1. Go to Administration->Security->Roles
2. Click on button 'New' to create a new role.
3. Enter a role name and check the check box 'Manage bundles' in 'Global Permissions' section.
4. Do not check any other checkbox.
5. Click on OK button.
5. Create a new user(testuser) and add user to the role created in step #4.
6. Login to jon with the user(testuser)
7. Try to acess Administrator->Content->Bundles link.
Actual results:
User is not able to see the link Administrator->Content 

Expected results:
User should be able to see the Content page and manage the bundles.

Additional info:
If a role has 'Manage inventory' permission and 'Manage bundles' permission, a user assigned to that role is able to access Administrator->Content->Bundles link.

Comment 1 Ian Springer 2010-07-07 23:00:06 UTC
Fixed by commit 074d5c2, which has been pushed to the release-3.0.0 branch.

Now a user with the Bundle perm can view Content>Bundles menu item, but a user with the Inventory perm and not the Bundle perm cannot.

Here's the relevant blurb from menu.xhtml:

        <ui:remove>***** Administration > CONTENT *****</ui:remove>
        <rich:menuGroup value="Content" rendered="#{GlobalPermissionsUIBean.inventory || GlobalPermissionsUIBean.bundle}">
            <rich:menuItem submitMode="none" onclick="window.location = '/coregui/CoreGUI.html#Bundles'"
                <h:outputText value="Bundles"/>
            <rich:menuItem submitMode="none" onclick="window.location = '/rhq/content/listContentProviders.xhtml'"
                <h:outputText value="Content Sources"/>
            <rich:menuItem submitMode="none" onclick="window.location = '/rhq/content/listRepos.xhtml'"
                <h:outputText value="Repositories"/>

Comment 2 Sunil Kondkar 2010-07-08 09:48:57 UTC
Verified on jon-2.4.0.GA_QA build#52

User assigned to a role having only manage bundles permissions is able to access Content>Bundles. A a user having the Inventory permission and without the Bundle permission cannot access Content>Bundles.

Comment 3 Corey Welton 2010-08-12 16:46:30 UTC
Mass-closure of verified bugs against JON.