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

Neither empty _fields nor _fields=* on a system resource read return all fields

    Details

      Description

      When read is done on a system resource is done like:
      http://huck.forgerock.com:8080/openidm/system/ldap/account/uid=aahuvmo.iotusteikpeg,ou=People,dc=example,dc=com

      This is returned:

      {
      _id: "uid=aahuvmo.iotusteikpeg,ou=People,dc=example,dc=com"
      ldapGroups: [0]
      sn: "Iotusteikpeg"
      mail: "aahuvmo.iotusteikpeg@usercreator.gen"
      cn: "Aahuvmo Iotusteikpeg"
      dn: "uid=aahuvmo.iotusteikpeg,ou=People,dc=example,dc=com"
      telephoneNumber: "9876543210"
      givenName: "Aahuvmo"
      uid: "aahuvmo.iotusteikpeg"
      description: "Created by resource Record Creator"
      disabled: null
      employeeType: null
      }

      But when a read is done with an empty _fields parameter like:
      http://huck.forgerock.com:8080/openidm/system/ldap/account/uid=aahuvmo.iotusteikpeg,ou=People,dc=example,dc=com?_fields=

      This is returned:

      {
      _id: "uid=aahuvmo.iotusteikpeg,ou=People,dc=example,dc=com"
      dn: "uid=aahuvmo.iotusteikpeg,ou=People,dc=example,dc=com"
      }
      

      Expected results would be the same as a read with no _fields declaration

      Note that it works well with managed objects (_fields= returns all the properties)

        Attachments

          Activity

            People

            • Assignee:
              jbranch Jon Branch
              Reporter:
              huck.elliott huck.elliott
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: