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

Backport OPENIDM-12383: API descriptor not available after setting relationship-type property to nullable

    XMLWordPrintable

    Details

      Description

      Reproduced on IDM 6.0.0 and 6.5.0.

      1. By default:

      # curl -u openidm-admin:openidm-admin "http://host1.domain1.com:8080/openidm/managed/user?_crestapi" | jq .
      {
        "id": "temp",
        "version": "0",
        "paths": {
          "": {
            "0.0": {
              "resourceSchema": {
                "id": "urn:jsonschema:org:forgerock:openidm:managed:api:User",
                "title": "User",
      ...

       

      2. In admin UI:

      • configure managed objects -> user.
      • select a relationship-type property, e.g. manager.
      • set "nullable" to true.

      As expected, managed.json is updated from:

                          "manager" : {
                              "type" : "relationship",

      to:

                          "manager" : {
                              "type" : [
                                  "relationship",
                                  "null"
                              ],

       

      3. Now, the API descriptor for managed user is not found:

      # curl -u openidm-admin:openidm-admin "http://host1.domain1.com:8080/openidm/managed/user?_crestapi" | jq .
      null

      In the API Explorer ([http://host1.domain1.com:8080/admin/#apiExplorer), User* endpoints are no longer listed.
      (/managed/user, /managed/user/{userid}/authzRoles, etc)

       

      4. There is no problem if a string-type property is set to nullable.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              patrickdiligent patrick diligent
              Reporter:
              mark.offutt Mark Offutt [X] (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: