-
Bug
-
Resolution: Not A Defect
-
Major
-
Ubuntu Server 14.04.2/Jenkins 1.641/OpenJDK 1.8.0_45
For example, when I click the link on the left sidebar, it hit this(http://jenkins.dev/job/phpdocumentor/API_Documentation/)
And it display something like this
But if I manually add "index.html" to the end of it(http://jenkins.dev/job/phpdocumentor/API_Documentation/index.html)
, It would display the right thing.
[JENKINS-32054] can not autoindex the index.html file
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 167530 ] | New: JNJira + In-Review [ 198221 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
This looks like the problem I have reported a few days ago (see
JENKINS-32026).The solution for me was the following:
1.) Upgrade to the latest Jenkins version (in my case 1.625.3).
2.) Upgrade the HTML Publisher Plugin (in my case to 1.10).
3.) Add the following to the file jenkins.xml:
-Dhudson.model.DirectoryBrowserSupport.CSP="script-src 'unsafe-inline'"
The reason in my case is a security issue regarding the use of JavaScript in the HTML file. Now it is working for me. There is only a little error because of the wrong checksum but when following the displayed link I can open the file and JavaScript is working. I hope this helps.