[JIRA] (JENKINS-61993) Test Results Aggregator - HTML report displays first row with black text on black background?

9 views
Skip to first unread message

dtscse@gmail.com (JIRA)

unread,
Apr 21, 2020, 11:18:03 AM4/21/20
to jenkinsc...@googlegroups.com
SON T DANG updated an issue
 
Jenkins / Improvement JENKINS-61993
Test Results Aggregator - HTML report displays first row with black text on black background?
Change By: SON T DANG
Summary: Test Results Aggregator - HTML report display displays first column row with black text on black background?
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

dtscse@gmail.com (JIRA)

unread,
Apr 21, 2020, 11:25:03 AM4/21/20
to jenkinsc...@googlegroups.com
SON T DANG updated an issue
HTML report displays OK via email notification. But if we view it on Jenkins URL, the first row displays Black text on Black background, see attached image

If we download the html report (via Zip button), and view it using browser, it displays OK.


 

Update: Error log from console: 
{code:java}
index.html:1 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-Lc4aCLVicdnYsGslfePKymo8QsEMz6ZWfXmSYkS88BE='), or a nonce ('nonce-...') is required to enable inline execution. {code}

socrates.sidereas@gmail.com (JIRA)

unread,
Apr 22, 2020, 10:22:03 AM4/22/20
to jenkinsc...@googlegroups.com
Socrates Sidereas started work on Improvement JENKINS-61993
 
Change By: Socrates Sidereas
Status: Open In Progress

socrates.sidereas@gmail.com (JIRA)

unread,
Apr 22, 2020, 10:28:03 AM4/22/20
to jenkinsc...@googlegroups.com

socrates.sidereas@gmail.com (JIRA)

unread,
Apr 22, 2020, 10:34:04 AM4/22/20
to jenkinsc...@googlegroups.com
 

Indeed the first row has font color via inline css and due to jenkins-content-security-policy

the color is not displayed. Characters are black on black background.

By following the proposal solution from 

https://stackoverflow.com/questions/37618892/jenkins-content-security-policy

all instyle elements are working fine.

Nevertheless to avoid this the font color declaration will be changed inside html tags instead of a generic css. Available in the next release 1.0.8

Change By: Socrates Sidereas
Status: In Review Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages