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

setting a managed object property type to integer results in VALID_TYPE policy violation

    XMLWordPrintable

    Details

      Description

      The integrator'd guide (from 4.0 to 6.5) lists integer as a supported data type. https://backstage.forgerock.com/docs/idm/6.5/integrators-guide/#creating-modifying-managed-objects

      "The data type for the property value; can be string, array, boolean, integer, number, object, Resource Collection, or null"

      However, creating a resource with such an integer property results in policy validation failure. To reproduce it, one needs to modify managed.json, because admin UI doesn't allow integer data type (OPENIDM-7226).

       failedPolicyRequirements=[{policyRequirements=[{params={invalidType=number, validTypes=[integer]}, policyRequirement=VALID_TYPE}], property=testProperty2}]}, message=Policy validation failed}
      

      The reason is javascript evaluates typeof an integer as number not integer. Is integer a supported data type?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Lana Lana Frost
              Reporter:
              yinyan.cao Yinyan Cao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: