[ https://issues.apache.org/jira/browse/AMBARI-15552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keta Patel updated AMBARI-15552: -------------------------------- Status: Patch Available (was: In Progress) > Role selection in List view of Manage Ambari page does not work correctly > ------------------------------------------------------------------------- > > Key: AMBARI-15552 > URL: https://issues.apache.org/jira/browse/AMBARI-15552 > Project: Ambari > Issue Type: Bug > Components: ambari-admin > Reporter: Keta Patel > Assignee: Keta Patel > Attachments: AMBARI-15552.patch, block_view_after_step3.tiff, > block_view_original.tiff, list_view_add_role_to_user_step1.tiff, > list_view_add_role_to_user_step2.tiff, list_view_add_role_to_user_step3.tiff, > list_view_users.tiff, mygroup.tiff, user1.tiff > > > Reproduction Steps: > 1. Go to Admin->Manage Ambari > 2. Create a group with a few users belonging to it. > (I have created "mygroup" with "user1", "user2", "user3") > (attachments "user1.tiff", "mygroup.tiff" shows samples) > 3. Go to Clusters->Roles on the left navigation menu. > 4. The default view is the "Block" view for the roles. Assign "mygroup" a > role, say "Cluster User". > (attachment "block_view_original.tiff") > 5. Click on "List" view, it will show Users by default. It correctly shows > the role "Cluster User" for each user in "mygroup". > (attachment "list_view_users.tiff") > 6. Now, try adding a new Role, say "Service Operator", to one of the users, > say "user3". > (attachments "list_view_add_role_to_user_step1.tiff", > "list_view_add_role_to_user_step2.tiff") > 7. After making this change, the role gets added for that user (in our case > "user3"), but the roles from other users in its group gets removed. Also, the > previous role for the user ("user3") is replaced by the new Role. > (attachment "list_view_add_role_to_user_step3.tiff") > 8. You can confirm this from the the "Block" view. > (attachment "block_view_after_step3.tiff") > So, the problem here lies with the List view where it is not able to process > the changes in the Roles correctly. > There is no provision to add a role. Any change in the Roles of the User from > the List view only replaces the role that was displayed in the selection box > while also removing all the Roles for the remaining users in its group. > Expected results: > 1. The selection box must be able to show all the selected Roles for > Users/Groups. > 2. Adding a Role must not replace existing Role of the user. > 3. Adding a Role to a user must not affect the Roles of other users in its > group. > 4. Multiple Role selection must be allowed from the selection box in the List > view. -- This message was sent by Atlassian JIRA (v6.3.4#6332)