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

Subsequent recompute of role members is always only for direct members despite indirect=true visible in GUI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.4.1
    • Fix Version/s: 4.5, 4.4.2
    • Component/s: GUI
    • Labels:
    • Subscription:
      Internal
    • Backport Version:

      Description

      I have a role which is assigned to several users both directly and indirectly.

      When I go to Role / Members and check indirect=true and click Search, I can see indirect members.

      clicking Recompute button will create a task and will recompute all members.
      The partial query in the task is:

      ...
          <q:filter>
              <q:ref>
                  <q:path>c:roleMembershipRef</q:path>
                  <q:value xmlns="" xsi:type="c:ObjectReferenceType">
                      <oid>10000000-9999-9999-0000-a000d0000009</oid>
                      <relation>org:default</relation>
                      <type>c:RoleType</type>
                  </q:value>
              </q:ref>
          </q:filter>
      ...
      

      When I go back from task to the Role / Members page, I can still see my indirect users displayed.

      When I go back to list of roles and edit the same role again, I go to Role / Members page and I can see Indirect=true is still selected (probably should not be remembered!) and I can see all indirect users as members. However when I click Recompute now, the task is created only for direct members:

          <q:filter>
              <q:type>
                  <q:type>c:FocusType</q:type>
                  <q:filter>
                      <q:exists>
                          <q:path>c:assignment</q:path>
                          <q:filter>
                              <q:ref>
                                  <q:path>c:targetRef</q:path>
                                  <q:value xmlns="" xsi:type="c:ObjectReferenceType">
                                      <oid>10000000-9999-9999-0000-a000d0000009</oid>
                                      <relation>org:default</relation>
                                      <type>c:RoleType</type>
                                  </q:value>
                              </q:ref>
                          </q:filter>
                      </q:exists>
                  </q:filter>
              </q:type>
          </q:filter>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: