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

Attributes are removed from the managed object configuration when edited in the UI, if they do not appear within an order array

    Details

      Description

      Re-production:

      1. Start OpenIDM
      2. Read the managed configuration from http://localhost:8080/openidm/config/managed and save the output
      3. Open the Admin UI and navigate to Configure -> Managed Objects -> Assignment
      4. Modify the description of the assignment object type within the UI (so the save button is available) and click Save
      5. Read the managed configuration from http://localhost:8080/openidm/config/managed and compare the attributes available against assignment from before/after saving

      Observed behaviour:

      Before - the following attributes are configured for 'Assignment':

      _id
      name
      description
      mapping
      attributes
      linkQualifiers
      roles
      

      After - the following attributes are configured for 'Assignment':

      _id
      name
      description
      attributes
      linkQualifiers
      

      Cause:

      Within managed.json, the order array contains the following for assignment:

              "order": [
                "_id",
                "name",
                "description",
                "attributes",
                "linkQualifiers"
              ]
      

      When the UI displays the attributes against an object type, those objects which aren't listed within the 'order' array are missing in the UI and when the new configuration is written via REST, they are not included within the request.

      This issue seems to also apply for other managed object types (e.g. role), not just assignment.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                huck.elliott Huck Elliott
                Reporter:
                tom.wood Tom Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: