Actions
Defect #1727
closedFailed event during manual contract end with automatic roles
Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Automatic roles
Target version:
Start date:
06/21/2019
Due date:
% Done:
100%
Estimated time:
Affected versions:
Owner:
Description
Tested on 9.6.4 and 9.7.0-SNAPSHOT
Situation:
So on 9.6.4 the problem probably affects data consistency.
Situation:
- identity has automatic role by attribute or by organization
- the contract is manually ended (by setting valid to)
- IdmIdentityContract UPDATE event ends with the attached exception
The role is removed, so it seems that only problem on 9.7.0 is the error in the event.
But on version 9.6.4, when it is automatic role by attribute, there is no failed event, but Audit - Requests for roles - can't be displayed with the exception:
org.springframework.orm.jpa.JpaObjectRetrievalFailureException: Unable to find eu.bcvsolutions.idm.core.model.entity.IdmIdentityRole with id ad8b8a02-8abe-4a60-94c1-61ce22a5161a; nested exception is javax.persistence.EntityNotFoundException: Unable to find eu.bcvsolutions.idm.core.model.entity.IdmIdentityRole with id ad8b8a02-8abe-4a60-94c1-61ce22a5161a
So on 9.6.4 the problem probably affects data consistency.
(I tested only manual contract end, I didn't test contract end by HR process.)
Files
Related issues
Actions