Project

General

Profile

Actions

Defect #2495

closed

Duplicit automatic roles given by two events and asynchronous role request in same time

Added by Ondřej Kopr over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Automatic roles
Target version:
Start date:
09/17/2020
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Use case:
  • project has automatic role for contract EAV,
  • project twice saved EAV contract value for same owner,
  • saving creates two events,
  • each event recalculate automatic roles and decides that new automatic role must be assigned,
  • recalculation creates role request,
  • role request doesn't check or recalculate again automatic role so result is that identity will has two same automatic roles.

LRT ProcessAllAutomaticRoleByAttributeTaskExecutor end with error:

org.springframework.dao.DataIntegrityViolationException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not extract ResultSet

Caused by: org.postgresql.util.PSQLException: ERROR: more than one row returned by a subquery used as an expression

Workaround: not exists


Related issues

Related to IdStory Identity Manager - Defect #2404: Provisioning operations from event and sync. created at the same time can be executed in wrong orderClosedRadek Tomiška07/27/2020

Actions
Related to IdStory Identity Manager - Defect #2605: Automatic role by attribute generates duplicate role requests and assignes subroles directlyClosedRadek Tomiška12/09/2020

Actions
Actions

Also available in: Atom PDF