Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-12713

LFS lock icon no longer displays in repository file browser on Bitbucket 7.7+

    XMLWordPrintable

    Details

      Description

      Issue Summary

      In Bitbucket 7.7, a change was made to the soy file used in the repository file browser which resulted in the LFS lock icon not showing up next to files that have been locked in git lfs.

      Steps to Reproduce

      1. Clone a LFS-enabled repository
      2. Lock a file with the command:
        • git lfs lock filename.txt

      Expected Results

      The repository file browser indicates that the file is locked in git lfs:

      Actual Results

      The lock icon is not shown:

      This is because the code is attempting to append the icon to the element with the class "item-name" for the locked file - but this class name no longer exists on the file browser's file rows following a change in Bitbucket 7.7.

      Workaround

      The lock icon is still present when viewing the source of the locked file - and a full listing of lfs locks for the repository can still be retrieved by visiting the following REST API endpoint:

      • /rest/git-lfs/latest/projects/PROJECT/repos/REPO/locks

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mmcglynn Michael McGlynn
              Reporter:
              eslaughter@atlassian.com Evan Slaughter
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Backbone Issue Sync

                  • Synchronized with BBSJAC
                    Synced with:
                    BBSJAC-615
                    Issue sync status:
                    ERROR
                    Last received:
                    Last sent: