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

Command to create a managed user with encoded percentage in ID fails with server error on policy

    Details

    • Story Points:
      5
    • Sprint:
      OpenIDM Sprint 55

      Description

      To reproduce (with OrientDB or MySQL as repo):

      curl --header "If-None-Match: *" --header "Content-Type: application/json" --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --data '{"userName": "rsutter", "telephoneNumber": "6669876987", "givenName": "rick", "description": "Just another John Doe or Joe Smith", "sn": "sutter", "mail": "rick@example.com", "password": "Th3Password"}' --request PUT "http://localhost:8080/openidm/managed/user/user%25with%25encoded%25percentage"
      {
        "code": 500,
        "reason": "Internal Server Error",
        "message": "Wrapped java.lang.IllegalArgumentException: Path contains an invalid percent encoding 'wi' (/Users/laurent/Development/stash/pyforge/PyBot/OpenIDM/install/openidm/bin/defaults/script/policyFilter.js#42) in /Users/laurent/Development/stash/pyforge/PyBot/OpenIDM/install/openidm/bin/defaults/script/policyFilter.js at line number 42 at column number 0"
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joy.feng Joy Feng [X] (Inactive)
                Reporter:
                laurent.bristiel Laurent Bristiel [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: