Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-6503

returnNullForMissingProperties=true supersedes _field specification

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Not a defect
    • Affects Version/s: 7.0.0
    • Fix Version/s: Not applicable
    • Component/s: rest
    • Labels:
      None

      Description

      IDM defines the following rest2ldap query:

      "query-all-ids": {
       "_queryFilter": "true",
       "_fields": "_id,_rev"
      }
      

      If http://localhost:8080/openidm/managed/user?_queryId=query-all-ids is dispatched against a DS instance configured with an explicit mapping (https://stash.forgerock.org/projects/OPENIDM/repos/openidm/browse/openidm-samples/repo-config/src/main/resources/opendj/conf/repo.ds-explicit-managed-user.json) and the default rest2ldap configuration of

      "returnNullForMissingProperties": true
      

      then the returned values will include all existing fields other than _id and _rev, all set to null, despite the fact that some of these fields do contain data.

      If the above-referenced repo-configuration file is updated with

      "returnNullForMissingProperties": false
      

      then only the _id and _rev fields are returned, as expected. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                JnRouvignac Jean-Noël Rouvignac
                Reporter:
                dhogan Dirk Hogan
                Dev Assignee:
                Jean-Noël Rouvignac
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: