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

Saving 'Raw file' in Chome-based browsers saves unrelated HTML file

XMLWordPrintable

      Issue Summary

      The code file will be saved in HTML other than original format when using 'Raw file' link.
      See the detail in 'Steps to Reproduce' section.

      This issue is reproduced in below environment.

      • Bitbucket: 7.7.1
      • Chrome: Version 86.0.4240.193 (Official Build) (x86_64)

      According to customer's report:
      Same issue happened in Edge(86.0.622.63 )as well.
      However, it does not happen in Firefox(82.0.3 64 bit), since a download will be forced.

      Steps to Reproduce

      1. Using chrome, go to Repository source list.
      2. Click a code file (d.java for example) , and open it.
      3. left click "Raw file" link, the fille will be open in chrome.
      4. Right click, select "Save As"
      5. Add extension for the file, like "d.java", and specify the format "All files", then click "Save"  button.
      6. The d.java will be saved to your local.

      Expected Results

      The saved file is same to the original one. In this example it should be a java file.

      Actual Results

      However, the file is not same to the original one, it is saved as a html format.

      Workaround

      Right click "Raw file", choose "Save Link As", and save the file. You will have the  original one.

      Alternatively, use a non-Chromium browser such as Firefox or Safari

              Unassigned Unassigned
              rli@atlassian.com Rick Li
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: