Bug 773235
Summary: | Not possible to see children resources for a custom role | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | vlad crc <vlad.craciunoiu> |
Component: | Core UI | Assignee: | RHQ Project Maintainer <rhq-maint> |
Status: | CLOSED DUPLICATE | QA Contact: | Mike Foley <mfoley> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 4.2 | CC: | hrupp, lkrejci, mulderika |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-01-27 19:51:44 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 782579 |
Description
vlad crc
2012-01-11 10:19:54 UTC
I think the problem can be solved in either of these 2 places: - org.rhq.enterprise.gui.coregui.client.inventory.resource.detail.ResourceTreeDatasource.java, line 148, should not be set to true. - org.rhq.enterprise.server.resource.ResourceManagerBean.java, lines 2451-2454 should be commented. Probably the second one is more appropriate. *** Bug 773237 has been marked as a duplicate of this bug. *** I tested this in 4.3.0-SNAPSHOT and it seems to be working as designed. If you create a non-recursive group, the user has access only to the resources that are explictly members of that group. If, however, you mark the group as recursive, the user should have access to all the child resources of the group. If the group is non-recursive, you shouldn't have seen its child resources in the nav tree. Conversely, if you defined your group as recursive, you should not see any authorization exceptions when navigating through the resource tree - in another words, the tree should only contain the resources the current user has at least read access to. I was not able to trigger a situation where the authz would seem to be broken - the above examples behaved as they should. I am therefore closing this bug. If you still think this is not behaving correctly or that I have misunderstood or forgot about something, please re-open it or create a new more specific bug. I did discover one glitch while testing this though - if the group "recursiveness" is updated, it's assignment to different roles is lost. I consider that unrelated to this bug though, so I created a new BZ for that - bug 785160 Hi, I am also able to reproduce this bug on RHQ 4.2.0. The resource group I tested is recursive. There are many ways the see the JBossAS resource in the tree: 1. Inventory -> Platforms, select the platform then expand the resource tree until the JBossAS resource. This is the case when the bug appears. 2. Inventory -> Servers, select the JBossAS resource. In this case it's ok, JBossAS resource children are visible. 3. Inventory -> All groups, select the group "mygroup". This is also ok. I am pretty sure that there is a problem in the indicated code: findResourcesByCriteria() method checks if the user has the "Manage Inventory" global permission, which it's not necessary in this case. Regards, Costel Ok, thanks for the pointers and futher information. In fact, Vlad already pointed to the part of code that was responsible for this behavior. It was the ResourceTreeDatasource and this issue was already fixed for JBoss ON 3.0.0, which means that it is going to be available in the upcoming RHQ 4.3.0. See bug 751091 for details. *** This bug has been marked as a duplicate of bug 751091 *** |