LFS tracked file name with multi-byte characters is broken if downloading from diff

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • 1

      Issue Summary

      In below conditions, the file name with multi-byte characters will be broken.

      • if the file is tracked by LFS
      • And, downloading from 'New' in diff.

      Note added 2024-11-12
      It is reproduced when file name in Japanese Kanji, but not reproduced in Japanese Katakata by my test.

      This is reproducible on Data Center: (yes) 

      Steps to Reproduce

      1. Crate a repo
      2. Enable LFS for the repo
      3. From a client, git lfs track "*.xlsx"
      4. Add a file with multi-byte filename (such as 操作. xlsx) to the repository
      5. Commit and push
      6. Edit the file
      7. Commit and push again
      8. Enable 'Always ask you where to save files' from browser
      9. From Bitbucket, click the file
      10. Click 'Diff to previous'
      11. Click 'Download file' from 'New'

      Expected Results

      File name shows correctly in save dialog.

      Actual Results

      File name is broken ('__.xlsx' )in save dialog.

      Workaround

      Currently there is no known workaround for this behavior.

            Assignee:
            Matthew Hanselman
            Reporter:
            Rick Li
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: