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

Rest2ldap output is different between embedded and gateway

    XMLWordPrintable

    Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Not a defect
    • 7.1.0
    • 7.1.0
    • rest
    • None

      Description

      When testing the output of a rest query and comparing it between embedded and gateway, it turned out that the embedded one is schema-aware while the gateway one is not:

      i.e. with gateway

      curl --cacert /Users/carole.forel/wks/pyforge/results/20210326-151018/rest2ldap_evaluation_group/tmp/ca-cert.pem --user bjesen:hifalutin "https://openam.example.com:8446/rest2ldap/api/users/bjensen?_prettyPrint=true"
      {
        "_id" : "bjensen",
        "_rev" : "0000000067ff3434",
        "_schema" : "frapi:opendj:rest2ldap:posixUser:1.0",
        "_meta" : {
          "lastModified" : "2021-03-26T14:11:29Z"
        },
        "userName" : "bjensen@example.com",
        "displayName" : [ "Barbara Jensen", "Babs Jensen" ],
        "name" : {
          "givenName" : "Barbara",
          "familyName" : "Jensen"
        },
        "description" : "Original description",
        "manager" : {
          "_id" : "trigden",
          "_rev" : "000000007450af12"
        },
        "groups" : [ {
          "_id" : "Carpoolers",
          "_rev" : "00000000a05c500f"
        } ],
        "contactInformation" : {
          "telephoneNumber" : "+1 408 555 1862",
          "emailAddress" : "bjensen@example.com"
        },
        "myCustomAttribute" : {
          "_id" : "kvaughan",
          "_refProperties" : {
            "customKey" : "customValue"
          },
          "_rev" : "00000000dc27bbb1"
        },
        "uidNumber" : "1076",
        "gidNumber" : "1000",
        "homeDirectory" : "/home/bjensen"
      }
      

      (Note the uidNumber/gidNumber)

      To reproduce:

      ./run-pybot.py -nvs rest2ldap_evaluation_group.*Tomcat* -t read_referenced_resource_fields_all opendj
      

        Attachments

          Issue Links

            Activity

              People

              cforel carole forel
              cforel carole forel
              Matthew Swift Matthew Swift
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: