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

Setting an attribute's minLength applies as a string via Admin UI

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: OpenIDM 6.0.0
    • Fix Version/s: None
    • Component/s: Module - Web UI
    • Labels:
    • Support Ticket IDs:

      Description

      When setting a value for the minLength of an attribute, the PUT sets this value to a string rather than an integer:

        "givenName": {
          "title": "First Name",
          "description": "First Name",
          "viewable": true,
          "type": "string",
          "searchable": true,
          "userEditable": true,
          "usageDescription": null,
          "isPersonal": true,
          "minLength": "1",
          "isVirtual": false
        },
      

      From https://ea.forgerock.com/docs/idm/integrators-guide/index.html#managed-object-configuration:

        "minLength"       : positive integer,
      

      To Reproduce:

      • Start OpenIDM 6.0.0 (Tested on Rev d34165a)
      • Add a minLength value to an attribute (e.g. givenName)
      • Review the managed configuration

      n.b. The behaviour still works correctly when attempting to create a new managed object after applying a value for minLength so this may simply be a documentation issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jason.browne Jason Browne
                Reporter:
                tom.wood Tom Wood
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: