Bug #5378

Edit user’s groups in Sunstone

Added by Abel Coronado almost 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:09/20/2017
Priority:NormalDue date:
Assignee:Abel Coronado% Done:

100%

Category:Sunstone
Target version:Release 5.6
Resolution:fixed Pull request:
Affected Versions:OpenNebula 5.4

Description

I have found two distinct UI errors in Sunstone when editing user’s group list:

I have user with primary group “1: users”, and I want to assign him to a secondary group.

I open System -> Users -> that_user page in Sunstone, and select the Groups tab. I see “users” in the “Primary group” section, and also as the only group in the “Secondary groups” section. Now I click on blue “Edit”. The “Secondary groups” section now contains the list of all groups, with “users” group line highlighted (as expected), but the displayed “Primary group” is now “oneadmin” instead of “users”.

This means that when do not change anything and just click on “Apply changes”, the user gets assigned to the “oneadmin” group as his primary and the only secondary group.

Another problem occurs when I try to fix the above situation, click on Edit again, change the primary group to “Users”, uncheck the “oneuser” group from the list of secondaries, and add “users” there instead: After “Apply changes”, I get the following error:

[one.user.delgroup] Cannot remove user from the primary group

But in fact, the user is now back in the “users” group and also has this group in the list of secondaries.

I think that after “Edit”, the present group should be displayed instead of “oneadmin”. Furthermore, when modifying both primary and secondary groups, the changes should be made in the correct order instead of attempting to remove the user from its primary group.

Explained in:
https://forum.opennebula.org/t/edit-users-groups-in-sunstone/4939

after-edit.png - after edit primary group (5.4 KB) Abel Coronado, 09/20/2017 08:31 AM

before-edit.png - before edit primary group (12.8 KB) Abel Coronado, 09/20/2017 08:31 AM


Related issues

Duplicated by Bug #5399: Sunstone does not select the correct primary group when e... Closed 09/25/2017

Associated revisions

Revision 3bc34ef2
Added by Abel Coronado almost 4 years ago

B #5378: Edit user's groups in Sunstone (#482)

Revision d7fee00b
Added by Abel Coronado almost 4 years ago

B #5378: Edit user's groups in Sunstone (#482)

(cherry picked from commit 3bc34ef2458e94c9913ae6c1fbb4ce5deb01068b)

History

#1 Updated by Abel Coronado almost 4 years ago

#2 Updated by Abel Coronado almost 4 years ago

  • % Done changed from 0 to 100

#3 Updated by OpenNebula Systems Support Team almost 4 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

#4 Updated by OpenNebula Systems Support Team almost 4 years ago

  • Duplicated by Bug #5399: Sunstone does not select the correct primary group when editing a user added

Also available in: Atom PDF