Project

General

Profile

Actions

Incident #6128

closed

UsersManagement portlet: VRE Groups (Teams) members disappear mysteriously

Added by Massimiliano Assante over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Urgent
Category:
Other
Start date:
Dec 05, 2016
Due date:
Dec 06, 2016
% Done:

100%

Estimated time:
Infrastructure:
Pre-Production, Production

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 :

  1. Assante has no groups in preVRE and Dorne
  2. Assign CNR Group to Assante in Dorne
  3. Assign CNR Group to Assante in preVRE
  4. Go back to Dorne
  5. in Dorne Assante has no groups, but in 2. we added him to CNR
Actions #1

Updated by Massimiliano Assante over 8 years ago

  • Description updated (diff)
Actions #2

Updated by Panagiota Koltsida over 8 years ago

  • Status changed from New to In Progress

We are investigating this issue

Actions #3

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?

Actions #4

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;
Actions #5

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.

Actions #6

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.

Actions #8

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

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)