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

Resource dependency allows to delete the resource account on which the second depends

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2 (Crius)
    • Fix Version/s: 2.2 (Crius)
    • Component/s: None
    • Labels:
      None

      Description

      1. two resources (CSV) with resource dependency. Resource A depends on B. The dependency is set as follows:

      <dependency>
        <resourceRef oid="10000000-9999-9999-0000-a000ff000003"/>
        <strictness>strict</strictness>
      </dependency>
      

      2. user has both A and B linked.
      3. Edit user, delete resource B account (resource A depends on this account)
      4. Save. The operation succeeds, although it should not.
      5. edit the user again
      6. try to delete resource A account. Error message appears:

      Update user failed: Unsatisfied strict dependency of account Discr(account (default) on 10000000-9999-9999-0000-a000ff000004) dependent on Discr(account (default) on 10000000-9999-9999-0000-a000ff000003): Account not provisioned
      

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: