Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-27164

Docker login does not work with username exceeding 58 characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.38.6
    • Fix Version/s: None
    • Component/s: Docker
    • Labels:
      None
    • Environment:
    • Severity:
      Medium
    • Location:
      External

      Description

      When trying to perform a docker login with a username that has more than 58 characters, it results in a failure from the docker client side with the following error:
      "unauthorized: BAD_CREDENTIAL"

      Failure is identical for internal & external users, and for every type of password /api key / token inserted.
      The issue affects only Docker login.

      What is the expected behavior? A successful docker login
      Steps to reproduce: 

      1. Setup Artifactory instance higher than V7.35.2
      2. Create a username with over 58 characters
      3. Perform a docker login with the above username & password

      Docker client returns “unauthorized: BAD_CREDENTIAL”
      Artifactory service logs shows:

      022-06-02T14:18:41.692Z [jfrt ] [ERROR] [4bbf566f49e59027] [o.a.s.p.OAuthProviderMgr:48   ] [ttp-nio-8081-exec-10] - Failed to authenticate with basic authentication: null

      same username works fine with previous Artifactory versions.

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              gabrieln Gabriel Noghryan
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-27228 -
                  SYNCHRONIZED
                  • Last Sync Date: