damianszczepanik / cucumber-reporting

HTML reports for Cucumber
GNU Lesser General Public License v2.1
548 stars 403 forks source link

Graphs and icons that collapse/uncollapse doesn't render in Chrome #472

Closed gustavoriveray closed 8 years ago

gustavoriveray commented 8 years ago

When I go to a report the graphs doesn't render

When I click on one of the Features, the steps are collapsed, the icon to uncollapsed doesn't show and clicking the square it shows doesn't do anything.

This only happens on Chrome, but in Firefox it renders correctly.

I get a bunch of these logs in Chrome's console

Blocked script execution in 'http://myjenkinsinstallation/job/myjob/cucumber-html-reports/' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

damianszczepanik commented 8 years ago

Looks like you are using the old version, upgrade

gustavoriveray commented 8 years ago

I did upgraded to 2.4.0, from 2.1.0

damianszczepanik commented 8 years ago

Can you check 2.3.0? There were some changes between those versions that may have impact

gustavoriveray commented 8 years ago

Sure, will get back to you later

VireshDoshiArm commented 8 years ago

I upgraded from 2.2.0 to 2.4.0 and noticed that the charts did not display correctly as per the issues observed by https://github.com/gustavoriveray

I have downgraded back to 2.2.0...

lbeder commented 8 years ago

:+1:

midopa commented 8 years ago

Seeing to today also for some reason. Didn't upgrade my browser, but Chrome is saying it's ready to upgrade. Maybe it does a partial upgrade and this was introduced?

OS X 10.11.4 (15E65) Chrome 51.0.2704.84 Jenkins 2.6

Anyway, seems related:

HTML Publisher ran into this back in Jenkins 1.6.x:

Not sure what the right fix is. Most Google results suggest relaxing content security policies globally in Jenkins, but that seems too broad.

midopa commented 8 years ago

Perhaps this line should be changed: https://github.com/jenkinsci/cucumber-reports-plugin/blob/9c291fe6eda4f102d5305f7f9e4895c349bac531/src/main/java/net/masterthought/jenkins/CucumberReportBaseAction.java#L38

From "sandbox; script-src 'self' 'unsafe-inline'; default-src 'self'; img-src 'self'; style-src 'self';" To "sandbox allow-scripts; script-src 'self' 'unsafe-inline'; default-src 'self'; img-src 'self'; style-src 'self';"

damianszczepanik commented 8 years ago

Fix will be provided soon, there are some problems with this and I have contacted Jenkins team. Please hold on...

damianszczepanik commented 8 years ago

New version has been published, please upgrade