Project

General

Profile

Actions

Task #1945

closed

LRT for importing user roles should assign the roles in one role request

Added by Alena Peterová over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Tomáš Doischer
Target version:
Start date:
11/18/2019
Due date:
% Done:

100%

Estimated time:
Owner:

Description

ImportCSVUserContractRolesTaskExecutor creates a separate role request for every added role. It would be better to create one common role request for all roles for given user.


If the roles assign the same system and account on the system is not linked yet, then separate role requests may cause an exception:

Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "ux_account_uid" 
  Detail: Key (uid, system_id)=(2094a048-78c5-4e31-95a2-ed66b85b0a49, \xe4433158a9bb404787c060e4e347457a) already exists.

Actions

Also available in: Atom PDF