Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-10621

Git LFS: git-lfs-authenticate missing expires_in field in JSON response

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 5.9.0
    • None
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      If git-lfs attempts to download files after the authentication token acquired from git-lfs-authenticate over SSH expires (e.g., when cloning a large repository and it takes longer than 5 - 10 minutes) it will get unauthorized errors.

      Git LFS has a mechanism to automatically renew the token but it requires the expire_in field to be set.

      As can be seen on https://github.com/git-lfs/git-lfs/blob/master/docs/api/authentication.md the expires_in field is optional, however it is likely only optional because tokens don't necessarily expire in certain implementations however they do in Bitbucket Server.

      The fix is to set the expires_in field in the JSON to the same value of 'Batch Token Expiry'.

      Attachments

        Issue Links

          Activity

            People

              behumphreys Ben Humphreys
              fkraemer Felipe Kraemer
              Votes:
              14 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: