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

Embedded DJ explicit user returns all NULL valued attributes for query-all-ids

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: Module - Repository DS
    • Labels:
    • Environment:
      OpenIDM: 7.0.0-SNAPSHOT ccba5cc
    • Story Points:
      3

      Description

      Embedded DJ explicit user returns all attributes that are defined in the schema but don't have any value (are NULL) for query-all-ids.

      To reproduce:
      1) setup IDM with Embedded DJ Explicit User
      2) create user

      curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --header "If-None-Match: *" --header "Content-Type: application/json" --data '{"userName": "rsutter", "givenName": "rick", "sn": "sutter", "mail": "rick@example.com", "telephoneNumber": "6669876987", "password": "Th3Password", "description": "Just another user"}' --request PUT "http://localhost:8080/openidm/managed/user/ricksutter"
      

      3) Invoke query-all-ids query

      curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin"  --request GET "http://localhost:8080/openidm/managed/user?_queryId=query-all-ids"
      
      {
        "result": [
          {
            "_id": "ricksutter",
            "_rev": "000000009a5ee2d9",
            "userName": null,
            "accountStatus": null,
            "effectiveRoles": null,
            "effectiveAssignments": null,
            "postalCode": null,
            "stateProvince": null,
            "postalAddress": null,
            "displayName": null,
            "description": null,
            "country": null,
            "address2": null,
            "city": null,
            "givenName": null,
            "sn": null,
            "telephoneNumber": null,
            "mail": null,
            "siteImage": null,
            "consentedMappings": null,
            "kbaInfo": null,
            "preferences": null,
            "active": null,
            "anotherMail": null,
            "basicProperty": null,
            "birth": null,
            "birthdate": null,
            "cars": null,
            "cn": null,
            "conditionTrue": null,
            "custom": null,
            "department": null,
            "email": null,
            "employeeNumber": null,
            "encrNotPrivate": null,
            "evalCondTrue": null,
            "eyeColor": null,
            "failure": null,
            "fax": null,
            "fieldHistory": null,
            "filterMatch": null,
            "gender": null,
            "hardware": null,
            "hNotPBcrypt": null,
            "hNotPScrypt": null,
            "hNotPMd5": null,
            "hNotPPbkdf2": null,
            "hNotPSha1": null,
            "hNotPSha256": null,
            "hNotPSha384": null,
            "hNotPSha512": null,
            "jobTitle": null,
            "lastName": null,
            "ldapGroups": null,
            "ldapPassword": null,
            "ldap2Password": null,
            "longitude": null,
            "maritalStatus": null,
            "onCreate": null,
            "onRead": null,
            "onRequestHook1": null,
            "onRequestHook2": null,
            "onRequestHook3": null,
            "onRequestScript": null,
            "onStore": null,
            "onUpdate": null,
            "onValidate": null,
            "ou": null,
            "password2": null,
            "planet": null,
            "valueOtherProp": null,
            "returnByDefTrue": null,
            "retry": null,
            "propToRemove": null,
            "propNoPolicy": null,
            "provisionToCSV": null,
            "sourceProperty": null,
            "sunset": null,
            "targetProperty": null,
            "twitterId": null,
            "userNameWork": null
          }
        ],
        "resultCount": 1,
        "pagedResultsCookie": null,
        "totalPagedResultsPolicy": "NONE",
        "totalPagedResults": -1,
        "remainingPagedResults": -1
      }
      

      to run automated test:
      in config.cfg repo_type = embedded_dj_explicit_table
      ./run-pybot.py -t query_all_ids_should_return_only_id_and_rev -n openidm

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Ladislav.Folta Ladislav Folta
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: