FishEye renders binary file in SVN repository as text when using native SVN

XMLWordPrintable

    • Severity 3 - Minor
    • 1

      Summary

      FishEye renders binary file in SVN repository as text when the filename contains round brackets '(', ')' and FishEye uses native SVN for the indexing. (This problem didn't happen when using SVNKit.)
      This is different problem from the one which is mentioned in this KB. Even if svn:mime-type of the file is set to application/octet-stream, this problem could be reproduced.

      Environment

      • Ubuntu 16.04
      • SVN 1.9.3

      Steps to Reproduce

      1. Create a SVN repository
      2. Add any file to the repository and commit it (revision 1)
        This step is important. I couldn't reproduce this problem in case that I added the problematic file in the initial commit. You should commit the problematic file after the initial commit.
      3. Add a binary file named "(test).pptx" to the repository and commit it (revision 2)
      4. Make change in the binary file and commit it (revision 3)
      5. Configure FishEye to use native SVN
      6. Add the repository to FishEye
      7. Execute full re-indexing to the repository
      8. Check the diff between revision 2 and revision 3 on the UI

      Expected Results

      "(test).pptx" should be handled as binary.

      Actual Results

      "(test).pptx" was handled as text.

      Notes

      As I mentioned above, in case that we added the problematic file to the repository in the initial commit, this problem couldn't be reproduced.
      In order to reproduce this problem, we have to add the file to the repository after the initial commit.

      When I reproduce this problem on my local, the following SVN commands seemed to be executed while re-indexing.

      2017-01-20 00:49:25,855 DEBUG [InitPing1 test_native ] fisheye IndexingStats-dump - svn cat -r 3 http://vagrant.vm/svn/test/%28test%29.pptx@3 took 3 millis
      2017-01-20 00:49:25,855 DEBUG [InitPing1 test_native ] fisheye IndexingStats-dump - svn info -r HEAD http://vagrant.vm/svn/test/@HEAD took 4 millis
      2017-01-20 00:49:25,855 DEBUG [InitPing1 test_native ] fisheye IndexingStats-dump - svn info -R -r 2 http://vagrant.vm/svn/test/%28test%29.pptx@2 took 5 millis
      2017-01-20 00:49:25,855 DEBUG [InitPing1 test_native ] fisheye IndexingStats-dump - svn proplist -r 1 http://vagrant.vm/svn/test/test.pptx@1 took 6 millis
      2017-01-20 00:49:25,855 DEBUG [InitPing1 test_native ] fisheye IndexingStats-dump - svn diff --summarize -r 2:3 http://vagrant.vm/svn/test/@3 took 7 millis
      2017-01-20 00:49:25,855 DEBUG [InitPing1 test_native ] fisheye IndexingStats-dump - svn info -R -r 1 http://vagrant.vm/svn/test@1 took 8 millis
      2017-01-20 00:49:25,855 DEBUG [InitPing1 test_native ] fisheye IndexingStats-dump - svn diff -r 2:3 http://vagrant.vm/svn/test@3 took 10 millis
      

      Workaround

      Please use SVNKit instead.

            Assignee:
            Unassigned
            Reporter:
            Yuki Okamoto (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: