Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-12668

Failing Git LFS authentication when batch mode is turned off

    XMLWordPrintable

Details

    Description

      When trying to acccess the Atlassian Git LFS server with batch mode disabled, that is in .git/config there is a line

      [lfs]
      batch = false

      , JWT authentication might fail with an error message like this:

      Expecting claim 'qsh' to have value 'ae7000d663f8fd54188ee281c6cd2b993e14fc137edc388d08d983d4fba1cb72' but instead it has the value '2cc818a83a2278b909f968babd376ba9f710d9369c916f956f34b34a34c5e4e8'

      Apparently the default for the batch option changed from git-lfs v0.52 to 0.60 (see https://github.com/github/git-lfs/blob/master/docs/api/http-v1-batch.md ). Due to this, this bug probably affects only old repositories that have the old default in their config or that specifically turned batch processing off.

      Ideally Atlassians git-lfs implementation would implement both options. In case that's not feasible it would be helpful to have a better error message that gives a hint, that batch processing is not supported and the config should be changed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            f91f1f5994e8 thies-heidecke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: