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

Pull request diff page is empty if commit contains a filename with "?"

XMLWordPrintable

      Issue Summary

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Commit a filename with "?", such as special?char.txt
      2. Modify the file in a new branch
      3. Create a pull request between the branches

      Expected Results

      The pull request shows the diff

      Actual Results

      The pull request is empty:

      Note that comparing the two branches on the compare page will show the correct diff (for Bitbucket version 7.21)

      Workaround

      The file must be renamed in the new branch - the PR will then be updated and show the correct diff:
      For example:

      git checkout branch1
      git mv special\?char.txt special-char.txt
      git add .
      git commit -m "change filename"
      git push
      

      The PR should now show the diff

        1. compare-view.png
          compare-view.png
          63 kB
        2. empty-diff.png
          empty-diff.png
          29 kB

              5b83d565b5b1 Josh Wang
              tathanassiadou Themis
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: