[JIRA] (JENKINS-59784) Unable to view a pdf file from jenkins workspace

0 views
Skip to first unread message

hkhan@mathworks.com (JIRA)

unread,
Oct 15, 2019, 4:46:03 AM10/15/19
to jenkinsc...@googlegroups.com
Hussain Khan created an issue
 
Jenkins / Bug JENKINS-59784
Unable to view a pdf file from jenkins workspace
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2019-10-15 08:45
Priority: Minor Minor
Reporter: Hussain Khan

Is this also due to restrictive Content-Security-Policy? If yes, do we have a workaround?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

dbeck@cloudbees.com (JIRA)

unread,
Oct 15, 2019, 4:55:03 AM10/15/19
to jenkinsc...@googlegroups.com
Daniel Beck closed an issue as Incomplete
 

Try to provide actual details about what the problem is you're experiencing. "Unable" covers a wide range.

Change By: Daniel Beck
Status: Open Closed
Resolution: Incomplete

hkhan@mathworks.com (JIRA)

unread,
Oct 15, 2019, 5:33:03 AM10/15/19
to jenkinsc...@googlegroups.com
Hussain Khan updated an issue
Change By: Hussain Khan
Attachment: pdfNotOpening.PNG

hkhan@mathworks.com (JIRA)

unread,
Oct 15, 2019, 5:35:02 AM10/15/19
to jenkinsc...@googlegroups.com
Hussain Khan commented on Bug JENKINS-59784
 
Re: Unable to view a pdf file from jenkins workspace

Basically, I cannot open a pdf file on chrome browser from jenkins workspace. If I try opening I get a blank page as you can see in the attached snapshot.

It works fine if I open it outside the workspace though.

 

Let me know if you need more clarification!

hkhan@mathworks.com (JIRA)

unread,
Oct 15, 2019, 5:52:02 AM10/15/19
to jenkinsc...@googlegroups.com
Hussain Khan reopened an issue
 

Basically, I cannot open a pdf file on chrome browser from jenkins workspace. If I try opening the file I get a blank page as you can see in the attached snapshot.

It works fine if I open it outside the workspace though.

 Let me know if you need more clarification!

Change By: Hussain Khan
Resolution: Incomplete
Status: Closed Reopened

dbeck@cloudbees.com (JIRA)

unread,
Oct 15, 2019, 11:39:02 AM10/15/19
to jenkinsc...@googlegroups.com
Daniel Beck commented on Bug JENKINS-59784
 
Re: Unable to view a pdf file from jenkins workspace

If it's a CSP problem, your browser's debug/network console should tell you.

Note that Jenkins 2.200 has an alternative to CSP for user-generated content (that is not simply disabling it)

hkhan@mathworks.com (JIRA)

unread,
Oct 16, 2019, 1:37:02 AM10/16/19
to jenkinsc...@googlegroups.com

Thanks Daniel!

I checked the browser's console and it shows the following error:

"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-C7vpsE1KLI7RuUgCprJTQZin6dWK+ccynbOx+OqjVow='), or a nonce ('nonce-...') is required to enable inline execution."

So it does seems to be a CSP problem. When you said alternative you meant that we can relax the rule set right with the help fo this doc - https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy

dbeck@cloudbees.com (JIRA)

unread,
Oct 16, 2019, 4:14:02 AM10/16/19
to jenkinsc...@googlegroups.com

When you said alternative you meant that we can relax the rule set right with the help fo this doc

No, but if you actually read today's version of that wiki page it'll point out the alternative

Reply all
Reply to author
Forward
0 new messages