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

Internal Role 'authzRoles' array does not return null fields anymore for REST requests

    Details

    • Target Version/s:
    • Support Ticket IDs:

      Description

      Issue occurs with the openidm-7.0.0-2019-09-11-18-23-a2f6d68

      Null fields of Internal Roles (authzRoles array) are not return anymore. Request like this:

      curl -X GET \
        'http://idm.example.com:8080/openidm/internal/role/openidm-authorized/authzMembers?_queryFilter=_refResourceId%20eq%20%22bjensen%22&_fields=authzRoles/%2A' \
        -H 'X-OpenIDM-Password: openidm-admin' \
        -H 'X-OpenIDM-Username: openidm-admin'
      

      currently return authzRoles field like this:

         "authzRoles": [
                      {
                          "_ref": "internal/role/openidm-authorized",
                          "_refResourceCollection": "internal/role",
                          "_refResourceId": "openidm-authorized",
                          "_refProperties": {
                              "_id": "5f268356-9868-41dc-8b0b-1e321d7ecb8a",
                              "_rev": "0"
                          },
                          "_id": "openidm-authorized",
                          "_rev": "0",
                          "name": "openidm-authorized",
                          "description": "Basic minimum user"
                      }
                  ]
      

      Prior to the mentioned SNAPSHOT build the authzRoles looks like this:

        "authzRoles": [
                      {
                          "_ref": "internal/role/openidm-authorized",
                          "_refResourceCollection": "internal/role",
                          "_refResourceId": "openidm-authorized",
                          "_refProperties": {
                              "_id": "cf4075e1-b494-42ac-a51c-277cd98445ea",
                              "_rev": "0"
                          },
                          "_id": "openidm-authorized",
                          "_rev": "0",
                          "name": "openidm-authorized",
                          "description": "Basic minimum user",
                          "temporalConstraints": null,
                          "privileges": null
                      }
                  ]
      

      As you can see there used to be 'temporalConstaints' and 'privileges' with null values

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matthias.grabiak Matthias Grabiak
                Reporter:
                alexander.dracka Alexander Dracka
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: