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

IDM admin UI does not save boolean property (of an object attribute) based on role conditions

    XMLWordPrintable

    Details

      Description

      Steps to reproduce:

      1. Create a conditional role (managed or internal), with a condition based on the "updates" property of the "preferences" object:

      curl --request PUT 'http://localhost:9080/openidm/managed/role/test-conditional-role' \
      --header 'X-OpenIDM-Username: openidm-admin' \
      --header 'X-OpenIDM-Password: openidm-admin' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "privileges": [],
          "name": "test-conditional-role",
          "condition": "/preferences/updates eq true"
      }'
      

      2. Open the role definition in the admin UI in IDM, note that the "Query" box shows the boolean value in double quotes (as if its treating the boolean value as string):

      /preferences/updates eq "true"

      and the UI also shows 

      Changes pending:

      • Condition

      3. If we hit save, then the conditional role membership behaves unpredictably. Any users who were already members of the role, keep showing as the members. If any user changes their "/preferences/updates" to false, they are removed from the member list (as expected), but if they change "/preferences/updates" to true again, they do not show up in the member list!

       

        Attachments

          Activity

            People

            Assignee:
            huck.elliott Huck Elliott
            Reporter:
            sandeep.chaturvedi Sandeep Chaturvedi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: