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

API descriptor not available after setting relationship-type property to nullable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: OpenIDM 6.0.0, 6.5.0
    • Fix Version/s: 7.0.0
    • Component/s: _Schema
    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      3
    • Sprint:
      OpenIDM Sprint 7.0-2
    • Support Ticket IDs:

      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:
                travis.haagen Travis Haagen
                Reporter:
                wei-yee.lum Wei-Yee Lum
                QA Assignee:
                Miroslav Meca
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: