Project

General

Profile

Bug #1967

Documentation pages generated by Jenkins do not render properly

Added by Teemu Murtola over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Jenkins
Target version:
-
Affected version - extra info:
Affected version:
Close

Description

At least on Safari, trying to browse the documentation generated by Jenkins (e.g., at http://jenkins.gromacs.org/job/Documentation_Nightly_master/javadoc/) renders really badly. Essentially, there is no layout at all on the pages, just a wall of text.

This is the likely cause: (at least the Safari error log is full of errors about things not permitted by the content security policy)
https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy

It is another question how we want to deal with security on Jenkins, but preferably at least stylesheets served together with the published web pages would be allowed to load...

History

#1 Updated by Roland Schulz over 3 years ago

I can't easily help, because it is fine on Windows+Chrome and Linux+Firefox.

#2 Updated by Teemu Murtola over 3 years ago

Another manifestation of the same issue is likely the fact that .svg files referenced from the Doxygen documentation do not render (not with Safari, nor with Firefox). The error reported by Firefox is

Content Security Policy: The page's settings blocked the loading of a resource at http://jenkins.gromacs.org/job/Documentation_2016/javadoc/doxygen/html-full/dot_module-deps.svg ("default-src 'none'").

#3 Updated by Mark Abraham over 3 years ago

I see this also with Chrome and Safari on Mac. Local docs builds are fine with Chrome+Mac.

#4 Updated by Roland Schulz about 3 years ago

  • Status changed from New to Resolved

Fixed by adding -Dhudson.model.DirectoryBrowserSupport.CSP= to /etc/default/jenkins

Also available in: Atom PDF