Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-3979

The operation would result in 0 assignees

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 3.6 (Comenius)
    • None

    Description

      We have role (attached) with two approvers and two owners (see screenshot). Unassigning any relation from any of those two uses lead to following erorr. Interestingly, i tried creating new role and assigning different users (less roles, no orgs assigned) and policy rule worked as expected.

      role:35507b1d-24c8-4cf6-98b1-0cddd8a7022e(01_Maternity Leave Role) requires at least 1 assignees with the relation of 'owner'. The operation would result in 0 assignees.; role:35507b1d-24c8-4cf6-98b1-0cddd8a7022e(01_Maternity Leave Role) requires at least 1 assignees with the relation of 'approver'. The operation would result in 0 assignees.

      	<globalPolicyRule>
      		<name>Requestable roles must have one+ OWNER and APPROVER</name>
      		<c:description>Cannot be checked at role creation</c:description>
      		<policyConstraints>
      			<minAssignees>
      				<multiplicity>1</multiplicity>
      				<relation>owner</relation>
      			</minAssignees>
      			<minAssignees>
      				<multiplicity>1</multiplicity>
      				<relation>approver</relation>
      			</minAssignees>
      		</policyConstraints>
      		<policyActions>
      			<enforcement />
      		</policyActions>
      		<focusSelector>
      			<type>UserType</type>
      		</focusSelector>
      		<targetSelector>
      			<type>RoleType</type>
      			<filter>
      				<q:equal>
      					<q:path>requestable</q:path>
      					<q:value>true</q:value>
      				</q:equal>
      			</filter>
      		</targetSelector>
      	</globalPolicyRule>
      

      Attachments

        Activity

          People

            martin.lizner Martin Lizner
            martin.lizner Martin Lizner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: