Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-59460

Basic Authentication fails when password contains special chars

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 7.0.10, 7.1.0
    • REST API

    Description

      Atlassian Update - 23rd May 2019

      We've discovered that this issue has been duplicated by the issue at https://jira.atlassian.com/browse/JRASERVER-59828. While this is a confirmed bug in Jira, please watch that issue for further updates, and more detailed workarounds.

      Cheers,
      Dave
      Atlassian Support

      Summary

      Could not log in with "Basic Authentication" when password contains special chars.

      Refers to:
      https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-basic-authentication

      Steps to Reproduce

      This works fine:

      curl -D- -u fred:fred -X GET -H "Content-Type: application/json" http://kelpie9:8081/rest/api/2/issue/createmeta
      

      But this does not work:

      curl -D- -u fred:üäöß!! -X GET -H "Content-Type: application/json" http://kelpie9:8081/rest/api/2/issue/createmeta
      

      what means the password "üäöß!!" will be not accepted by jira api.

      Same goes to base64:

      curl -D- -X GET -H "Authorization: Basic ZnJlZDrDvMOkw7bDnyEh" -H "Content-Type: application/json" http://kelpie9:8081/rest/api/2/issue/createmeta
      

      Workaround:

      Please see https://jira.atlassian.com/browse/JRASERVER-59828 for the workaround options.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: