Project

General

Profile

Actions

Defect #1263

closed

Automatic role by attribute "workPosition" doesn't work

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

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

100%

Estimated time:
Affected versions:
Owner:

Description

Version: current develop (9.1.1.-SNAPSHOT)
Automatic role for contract attribute "workPosition" doesn't work - the role isn't assigned to users. The LRT, which should add the role, fails with the following exception:

java.lang.ClassCastException: Cannot cast java.lang.String to eu.bcvsolutions.idm.core.model.entity.IdmTreeNode
    at java.lang.Class.cast(Class.java:3369)
    at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmAutomaticRoleAttributeService.castToType(DefaultIdmAutomaticRoleAttributeService.java:708)
    at eu.bcvsolutions.idm.core.model.service.impl.DefaultIdmAutomaticRoleAttributeService.getPredicateForRuleByContract(DefaultIdmAutomaticRoleAttributeService.java:502)

Use-case:
We want to assign the role automatically by organization and at the same time an EAV of identity. So we need one of the automatic rules: contract.workPosition = 123456 where 123456 is the code of the organization.
So far we can use workaround - set the code of the organization to a new EAV of contract.


Related issues

Related to IdStory Identity Manager - Feature #1265: Support automatic roles by organization and by attributesNewOndřej Kopr09/24/2018

Actions
Actions

Also available in: Atom PDF