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

REST2LDAP: Null source on query-all-ids

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      3
    • Support Ticket IDs:

      Description

      Steps to reproduce - 

      • IDM 6.5.0.
      • embedded DS, explicit mapping for managed user (db/ds/repo.ds-explicit-managed-user.json).
      • start IDM, create 2 managed users.
      • query-all-ids:

       

      $ curl -u openidm-admin:openidm-admin "http://trio:8076/openidm/managed/user?_queryId=query-all-ids" | jq .
      {
        "result": [
          {
            "_id": "17e10192-7c89-45fb-acad-b75e7ff6ff47",
            "_rev": "000000008987e95e",
            "userName": null,
      
            "accountStatus": null,
            "effectiveRoles": null,
            "effectiveAssignments": null,
            "postalCode": null,
            "stateProvince": null,
      ...
      

       

      • whereas a query-all:

       

      $ curl -u openidm-admin:openidm-admin "http://trio:8076/openidm/managed/user?_queryId=query-all" | jq .
      {
        "result": [
          {
            "_id": "17e10192-7c89-45fb-acad-b75e7ff6ff47",
            "_rev": "000000008987e95e",
            "userName": "wy1",
      
            "accountStatus": "active",
            "effectiveRoles": null,
      ...
      
      • I removed this line from repo.ds.json:

       

         "returnNullForMissingProperties": true
       
      
      • restarted IDM.

      => And now query-all-ids returns expected output:

      $ curl -u openidm-admin:openidm-admin "http://trio:8076/openidm/managed/user?_queryId=query-all-ids" | jq .
      {
        "result": [
          {
            "_id": "17e10192-7c89-45fb-acad-b75e7ff6ff47",
            "_rev": "000000008987e95e"
          },
          {
            "_id": "980334d2-5b2f-4248-a557-bca9ee5199fc",
            "_rev": "000000004c03e9ec"
          }
        ],

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dhogan Dirk Hogan
                Reporter:
                becky.maund Becky Maund
                QA Assignee:
                Vojtech Zamecnik [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: