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

Unable to run curl/REST when credentials have UTF-8 chars in header

    Details

    • Support Ticket IDs:
    • Zendesk ID:
      43438

      Description

      Tested in 5.0.1.1 (customer environment) & 6.5.0.1

       

      Using bidirectional synchronization between an LDAP directory and an IDM repository, create a user with the following on IDM:

      username: ÄäÖöÜüßétestA@stark1.com

      password: Welcome1

       

      We want to make sure that the user has Authorization Roles of "openidm-admin".  This should allow the user to make curl/REST calls to the environment.

      Next we want to do a PATCH to a user in LDAP to make some changes.  Using openidm-admin, patch a user with the following payload:

       

      [

      { "operation": "replace", "field": "sn", "value": "Umlaut" }

      ]

       

      This should change the users SN field when we PATCH a user via a REST call:

      http://localhost:8080/openidm/system/ldap/account/<id>

       

      Where ID is the id of the user in the LDAP server.  Now once we know we have that set up (if using Postman, please clear cookies), we should change the headers to use the ÄäÖöÜüßétestA@stark1.com credentials.

       

      What will happen is we will get the following:

       
      {
      "code": 401,
      "reason": "Unauthorized",
      "message": "Access Denied",
      "detail": {
      "failureReasons": [

      { "code": 401, "reason": "Unauthorized", "message": "Invalid credential has been provided to operation ACTION for system object" }

      ]
      }
      }
      Any other users can be given the same Roles and they can update with no issues.  It is only because of the user ÄäÖöÜüßétestA@stark1.com
       
       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matthias.grabiak Matthias Grabiak
                Reporter:
                jesse.ontiveros Jesse Ontiveros
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: