-
Type:
Bug
-
Resolution: Answered
-
Priority:
Low
-
Affects Version/s: 4.2.1, 4.3.0
-
Component/s: Indexing
-
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
- Create a SVN repository
- 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. - Add a binary file named "(test).pptx" to the repository and commit it (revision 2)
- Make change in the binary file and commit it (revision 3)
- Configure FishEye to use native SVN
- Add the repository to FishEye
- Execute full re-indexing to the repository
- 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.