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

Relationship between a custom managed object and a default object can be created in both directions via the UI

    Details

      Description

      When creating a relationship between a custom managed object and a default (e.g. role), the relationship can be added twice, once from either end, via the UI. When checking the Network tab within Chrome Developer Tools, it is shown that this is caused because the request from the default managed object side includes the 'temporalConstraints' attribute:

      {
        "_ref": "managed/notUser/notUser",
        "_refProperties": {
          "temporalConstraints": [],
          "_grantType": ""
        }
      }
      

      Whereas when adding the relationship from the new custom object, this attribute is not included:

      {
        "_ref": "managed/role/Role",
        "_refProperties": {
          "_grantType": ""
        }
      }
      
      GET http://localhost:8080/openidm/managed/notUser/notUser
      
      {
          "_id": "notUser",
          "_rev": "6",
          "roles": [
              {
                  "_ref": "managed/role/Role",
                  "_refProperties": {
                      "_id": "35c50822-c3a6-4839-8be9-c8ae29927142",
                      "_rev": "0",
                      "_grantType": ""
                  }
              },
              {
                  "_ref": "managed/role/Role",
                  "_refProperties": {
                      "_id": "ace9f521-5d0d-4556-acf0-805fabfa1b7c",
                      "_rev": "0",
                      "temporalConstraints": [],
                      "_grantType": ""
                  }
              }
          ]
      }
      

      To re-create this: (tested on Rev: 25a1c90)

      1. Unzip OpenIDM 6.0.0 and add the attached managed.json to the conf directory
      2. Start OpenIDM 6.0.0
      3. Create a 'Role'
      4. Create a 'notUser'
      5. Add a relationship from 'Role' to 'notUser'
      6. Add a relationship from 'notUser' to 'Role'

        Attachments

          Activity

            People

            • Assignee:
              huck.elliott huck.elliott
              Reporter:
              tom.wood Tom Wood
              QA Assignee:
              Mark Gibson
            • Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: