Incident #6128
closedUsersManagement portlet: VRE Groups (Teams) members disappear mysteriously
100%
Description
We noticed that members have disappeared from VRE Groups. We think when a user is assigned to a VRE Group he loses the other VRE Groups memberships in the other VREs. We reproduced the problem in preproduction (pre.d4science.org)
Steps to reproduce the issue and a video showing the issue in preprod http://www.screencast.com/t/Z2XU8eK8uhf :
- Assante has no groups in preVRE and Dorne
- Assign CNR Group to Assante in Dorne
- Assign CNR Group to Assante in preVRE
- Go back to Dorne
- in Dorne Assante has no groups, but in 2. we added him to CNR
Updated by Panagiota Koltsida over 8 years ago
- Status changed from New to In Progress
We are investigating this issue
Updated by Panagiota Koltsida over 8 years ago
- % Done changed from 0 to 40
In order to fix this issue the users management library should be extended to support liferay's API: addUserTeam, because now the only available method is: lrm.setUserTeams(gcu.getUserId(), gCubeTeamIDs)
which seems to cause the problems in the way we are using it since it is the only available method.
Because at every time we are working per VRE the set seems to override the groups from the other VRE
@massimiliano.assante@isti.cnr.it could you please add this method?
Updated by Massimiliano Assante over 8 years ago
Giota, isn't the method below (already there) working for you?
in: org.gcube.vomanagement.usermanagement.RoleManager boolean assignTeamToUser(long userId, long teamId) throws UserManagementSystemException, UserRetrievalFault, GroupRetrievalFault,TeamRetrievalFault;
Updated by Panagiota Koltsida over 8 years ago
@massimiliano.assante@isti.cnr.it this method is fine, but I would also suggest to internally use the method I mentioned before for adding new team to the existing ones, instead of getting everything, adding the new one and setting everything again.
Updated by Massimiliano Assante over 8 years ago
in the past we tested the method assignTeamToUser and works fine, I'm not sure why @costantino.perciante@isti.cnr.it implemented it in this way instead of using the one you suggest (addUserTeam).
We are going to keep this implementation in gCube 4.2 and will evaluate the change to addUserTeam in the next release.
Updated by Panagiota Koltsida over 8 years ago
- Status changed from In Progress to Closed
- % Done changed from 40 to 100
The bug has been fixed and it is available in the release 4.2