Repository clone (GIT LFS fetch) using the repository token fails with the "Authorization error"

XMLWordPrintable

    • 2
    • Severity 3 - Minor
    • 35

      Issue Summary

      Repository clone (GIT LFS) using the repository token fails with the "Authorization error"

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Clone the GIT LFS repository using the repository token
      2. Now fetch the lfs file using the below command
         git lfs fetch --all
        
      3. LFS files will not be fetched and the clone will fail with the below error
        < HTTP/2.0 401 Unauthorized
        17:44:45.558717 trace git-lfs: api error: Authentication required: Authorization error: https://x-token-auth:****************@bitbucket.org/ietharsh3/mickey98.git/info/lfs/objects/batch
        Check that you have proper access to the repository
        batch response: Authentication required: Authorization error: https://x-token-auth:**********@bitbucket.org/ietharsh3/mickey98.git/info/lfs/objects/batch
        Check that you have proper access to the repository
        error: failed to fetch some objects from 'https://x-token-auth:vY6w8wrbwCFNU9N8GUVp@bitbucket.org/ietharsh3/mickey98.git/info/lfs'
        

      Expected Results

      LFS files should be fetched as expected

      Actual Results

      Unable to fetch the LFS files

      Workaround

      Clone is successful if we authenticate using the App Password

            Assignee:
            Unassigned
            Reporter:
            Harsh Sharma (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: