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

Admin UI incorrectly changes Managed User schema

    Details

    • Sprint:
      OpenIDM Sprint 68
    • Story Points:
      1
    • Support Ticket IDs:

      Description

      On both 4.0 and 4.5, when you remove a managed user property that is a reference to a managed property in a custom managed object, the UI changed the type of a different managed property from boolean to string.

      Step to reproduce:

      1. Install openidm 4.0 or 4.5.
      2. Replace the default managed.json file with the attached.
      3. In the Admin UI, navigate to Configure -> Managed Objects -> User -> Schema
      4. Note that the "type" of the managed user property "enrolled" is boolean.
      5. Add the following Schema Property called "affiliations":

      • "affiliations" : {
      • "description" : "", - "title" : "Effective Affiliations",
      • "viewable" : true,
      • "searchable" : false,
      • "userEditable" : false,
      • "returnByDefault" : true,
      • "type" : "array",
      • "items" : {
      • "type" : "relationship",
      • "reverseRelationship" : false,
      • "reversePropertyName" : "",
      • "validate" : true,
      • "properties" : {
      • "_ref" : { - "type" : "string" - }

        ,

      • "_refProperties" : {
      • "type" : "object",
      • "properties" : {
      • "_id" : { - "type" : "string", - "label" : "" - }

        ,

      • "resourceCollection" : [
      • {
      • "path" : "managed/bannerRole",
      • "label" : "bannerRole",
      • "query" : { - "queryFilter" : "true", - "fields" : [ - "_id" - ], - "sortKeys" : [ - "_id" - }

        ,

      6. Without leaving the this screen, click "x Last Property" to remove the property "affiliations" that you just created.

      Note that the "type" of the "enrolled" property has been changed to "string".

      I've set the priority of the ticket to high, because it can be very difficult to detect unexpected changes to schema properties. This customer has reported other similar issues that I haven't yet been able to duplicate. For example, on several occasions, the "scope" and "encryption" attributes of the "password" property were removed the managed user schema, as were the following attributes from "effectiveRoles" and "effectiveAssignments", respectively:

      "returnByDefault" : true,
      "isVirtual" : true,
      "onRetrieve" :

      { "type" : "text/javascript", "file" : "roles/effectiveRoles.js", "rolesPropName" : "roles" }

      ,

      "isVirtual" : true,
      "onRetrieve" :

      { "type" : "text/javascript", "file" : "roles/effectiveAssignments.js", "effectiveRolesPropName" : "effectiveRoles" }

      ,

      I haven't yet been able to duplicate these errors yet, though.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                huck.elliott huck.elliott
                Reporter:
                nena.hunt Nena Hunt [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: