Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-10309

Backport OPENIDM-10126: Incomplete list of role members after condition query.

    Details

      Description

      Steps to reproduce:

      1. Configure OpenDJ
        • ./setup directory-server \
          --rootUserDn "cn=Directory Manager" \
          --rootUserPassword password \
          --hostname localhost \
          --adminConnectorPort 4444 \
          --ldapPort 1389 \
          --sampleData 1000 \
          --baseDn dc=example,dc=com \
          --backendType je-backend \
          --acceptLicense
      1. Start IDM with example samples/sync-with-ldap (samples/sample2)
      2. Reconcile 
        • curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --request POST "http://localhost:8080/openidm/recon?_action=recon&mapping=systemLdapAccounts_managedUser&waitForCompletion=true"
      1. Make sure, than 1000 user contains 'example' in mail attribute
      • curl  --header "X-OpenIDM-Username: openidm-admin"  --header "X-OpenIDM-Password: openidm-admin" --request GET 'http://localhost:8080/openidm/managed/user?_prettyPrint=true&_queryFilter=%2Fmail%20co%20%22example%22' | jq .
        • "resultCount": 1000,
          "pagedResultsCookie": null,
          "totalPagedResultsPolicy": "NONE",
          "totalPagedResults": -1,
          "remainingPagedResults": -1
          
      1. Create role with condition query. I used UI and condition query looks like 
        • /mail co "example"
          
      1. Check number of members of a new role
        •  curl  --header "X-OpenIDM-Username: openidm-admin"  --header "X-OpenIDM-Password: openidm-admin"  --request GET   'http://localhost:8080/openidm/managed/role/1f856919-6444-4339-b7b9-67bd0ca12a18/members?_queryId=query-all-ids' | jq .
          
          "resultCount": 500,
          "pagedResultsCookie": null,
          "totalPagedResultsPolicy": "NONE",
          "totalPagedResults": -1,
          "remainingPagedResults": -1
          
          

      Expected result: I would expect 1000 members for a new role.

      Actual result: There are only 500 members for a new role.

      Also added screenshot with users without any role.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.offutt Mark Offutt
                Reporter:
                mark.offutt Mark Offutt
                QA Assignee:
                Jakub Janoska
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: