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

Workflow provisioning-with-workflow fails with no explicit errors when entering phone number in wrong format

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.5.0
    • 6.5.0
    • _Samples
    • OpenIDM version "6.5.0-SNAPSHOT" (build: 20181114225033, revision: b90b2ee)
    • 2

    Description

      Steps to reproduce
      1) follow https://ea.forgerock.com/docs/idm/samples-guide/index.html#chap-provisioning-with-workflow
      2) as user1 submit a user with phoneNumer like "foo" => this is accepted, no check here
      3) as manager1, when trying to accept the user, we get an non-explicit error and in the console we see:

      Caused by: org.forgerock.openidm.script.ScriptThrownException: {code=403, detail={result=false, failedPolicyRequirements=[{policyRequirements=[{regexp=^\+?([0-9\- \(\)])*$, flags=null, params={regexp=^\+?([0-9\- \(\)])*$}, policyRequirement=MATCH_REGEXP}], property=telephoneNumber}]}, message=Policy validation failed} {code=403, detail={result=false, failedPolicyRequirements=[{policyRequirements=[{regexp=^\+?([0-9\- \(\)])*$, flags=null, params={regexp=^\+?([0-9\- \(\)])*$}, policyRequirement=MATCH_REGEXP}], property=telephoneNumber}]}, message=Policy validation failed}
      

      => I suppose we should check the format of PhoneNumber when it is submited by user1

      Note that other fields are checked for wrong format.
      For example email with wrong format would show "The Email field must be a valid email."

      Attachments

        Issue Links

          Activity

            People

              jason.browne Jason Browne [X] (Inactive)
              laurent.bristiel Laurent Bristiel [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: