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

Enduser UI can fail to load organizations when the managed organization schema is updated

    XMLWordPrintable

    Details

    • Target Version/s:
    • Story Points:
      2

      Description

      When using the Org Model with delegated admin enabled, a table of Organizations and Users becomes available in the Enduser UI. If a column in one of these tables is deleted from the managed objects schema, the UI will fail to load the managed objects table and instead show an infinite loading circle. It appears that in this case the UI never makes the managed/organization query. I suspect this is the case with any tables of managed objects that may be present in the Enduser UI.

      Reproduction Steps:

      • Enable Delegated Admin
        In the Admin UI, select Configure > Authentication > Session > Enable Dynamic Roles
      • Create an Org
        curl --request PUT 'http://localhost:8080/openidm/managed/organization/root_org' \
         --header 'Content-Type: application/json' \
         --header 'X-OpenIDM-Password: openidm-admin' \
         --header 'X-OpenIDM-Username: openidm-admin' \
         --data-raw '{
         "name": "root_org"
         }'

         

      • Create an Org Owner
        curl --request PUT 'http://localhost:8080/openidm/managed/user/bjensen' \
         --header 'Content-Type: application/json' \
         --header 'X-OpenIDM-Username: openidm-admin' \
         --header 'X-OpenIDM-Password: openidm-admin' \
         --data-raw '{
         "userName": "bjensen",
         "sn": "Jensen",
         "givenName": "Barabara",
         "mail": "bjensen@example.com",
         "telephoneNumber": "082082082",
         "password": "Passw0rd",
         "ownerOfOrg": [{ "_ref": "managed/organization/root_org" }]
         }'
        

         

      • Logging into the enduser UI as bjensen shows a table with Name and Description columns, deleting one of these columns will prevent the table from loading. 

      • In the Admin UI go to configure > Managed Objects > organization and delete the 'description' property
      • Login to the Enduser UI as bjensen, from the menu select Organization. You will see an infinite 'Loading organizations...' circle. 

      • Prior to deleting the 'description' property from the managed organization, the UI makes the following query. In this case it appears that the query is never made by the UI.
        GET http://localhost:8080/openidm/managed/organization?_queryFilter=true&_pageSize=10&_sortKeys=name&_fields=name,description
        

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            julian.keller Julian Keller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: