Description of problem: Two roles have been assigned to the user. The same resource group is assigned to both roles. When new user log in and select Resources -> All Resources, resulted table will contain duplicated resources. At the same time resource number will be correct. The same happens when select Groups -> All Groups. Version-Release number of selected component (if applicable): JON 2.4.1 How reproducible: every time Steps to Reproduce: 1. Create a non-recursive group (for instance dynamic group that contains all platforms); 2. Create a new user; 3. Create two new roles (for instance JON-Admin:Administer JON Server settings true and Developer-Read:Subsystem Permissions -> Configure set to true) and assign to each of them newly created user and newly created group. 4. Log out and log in again using user name and password for that is given to the new user; 5) Select Resources -> All Resources Actual results: Resulted table contains duplicated number of resources; Expected results: Resulted table contains correct number of resources Additional info: The same happens if the user select Groups -> All Groups. At the same time, the number of the resources (groups) is correct.
Is the workaround to use two distinct groups (but with the same members) when creating the roles?
(In reply to comment #1) > Is the workaround to use two distinct groups (but with the same members) when > creating the roles? That fixes the "All Group" page - as the number of the groups is 2 and it does show 2 groups. But the page "All Resources" still shows duplicated resources.
I have reproduced this on JON 2.4.2. However, I was *not* able to reproduce it with JON 3.0.1-SNAPSHOT or RHQ 4.3.0-SNAPSHOT, so it appears to be fixed in more current branches.
In JON 2.4.2, I also see the duplicate Resources when using the CLI: tester@localhost:7080$ ResourceManager.findResourcesByCriteria(new ResourceCriteria()) id name version currentAvailability resourceType ------------------------------------------------------------------------------------------------------------------------------------------- 10016 CPU 0 Pentium 4 UP CPU 10016 CPU 0 Pentium 4 UP CPU 2 rows This tells me the bug is in the Server (probably either an SLSB or the criteria engine), and not in the GUI. Note, I do *not* see duplicate Resources in the CLI with JON 3.0.1-SNAPSHOT or RHQ 4.3.0-SNAPSHOT.
Given Ian's comments this will definitely be fixed in JON3.0.1 and I would expect it to be fixed in JON3.0.0 too