Details
Description
Under enduser when going to role detail - assignment or inducement tab, adding new entity via new popup GUI we get:
Caused by: com.evolveum.midpoint.repo.sql.query.QueryException: Entity Ent:ROrg (jaxb=OrgType) cannot be restricted to Ent:RRole (jaxb=RoleType) at com.evolveum.midpoint.repo.sql.query2.resolution.ItemPathResolver.findRestrictedEntityDefinition(ItemPathResolver.java:261) at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.findAndCreateRestrictionInternal(QueryInterpreter2.java:257) at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.findAndCreateRestriction(QueryInterpreter2.java:231) at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretFilter(QueryInterpreter2.java:215) at com.evolveum.midpoint.repo.sql.query2.restriction.NaryLogicalRestriction.updateJunction(NaryLogicalRestriction.java:67) at com.evolveum.midpoint.repo.sql.query2.restriction.OrRestriction.interpret(OrRestriction.java:40) at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretFilter(QueryInterpreter2.java:216) at com.evolveum.midpoint.repo.sql.query2.restriction.NaryLogicalRestriction.updateJunction(NaryLogicalRestriction.java:67) at com.evolveum.midpoint.repo.sql.query2.restriction.AndRestriction.interpret(AndRestriction.java:40) at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretFilter(QueryInterpreter2.java:216) at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpretQueryFilter(QueryInterpreter2.java:209) at com.evolveum.midpoint.repo.sql.query2.QueryInterpreter2.interpret(QueryInterpreter2.java:119) at com.evolveum.midpoint.repo.sql.query2.QueryEngine2.interpret(QueryEngine2.java:63) at com.evolveum.midpoint.repo.sql.helpers.ObjectRetriever.countObjectsAttempt(ObjectRetriever.java:325)