* What steps will reproduce the problem?
1. Add a file in your git repository with utf-8 char in its name, lets say « bébé.java
»
2. add and commit
3. try to diff / view / blame the file in gitblit
* What is the expected output?
The same as for other files with only pure ASCII characters in their names: the lovely
output we are used to get ;-)
* What do you see instead?
All links are broken (css, images, etc.).
When you try a diff on that file, you get the following error in log file:
ERROR failed to generate commit diff!
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at com.gitblit.utils.GitBlitDiffFormatter.getHtml(GitBlitDiffFormatter.java:138)
at com.gitblit.utils.DiffUtils.getDiff(DiffUtils.java:176)
at com.gitblit.utils.DiffUtils.getDiff(DiffUtils.java:93)
* What version of the product are you using? On what operating system?
v1.1.0, war version with Tomcat 5.5, Ubuntu 8.04.4 LTS
(hardy)
Thank you in advance for solving that problem: I have more than 56000 documents in
my Git repo and about 20000 have utf-8 chars in their names...
Originally reported on Google Code with ID 128
Reported by
benoit.mercibeon 2012-09-06 21:09:12