Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62027

I am unable to view the log.html or report.html file because of javascript error messages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: robot-plugin
    • Labels:
      None
    • Environment:
      I am using Jenkins ver. 2.222.1 and the latest version of robot-plugin. On a Windows x64 Server
    • Similar Issues:

      Description

      I am unable to view the log.html or report.html file because of javascript error messages.

      I am using Google Chrome to view the Jenkins Dashboard.
      see atached screen shots

        Attachments

          Issue Links

            Activity

            Hide
            mog Morgan Christiansson added a comment -

            Use this JVM option:

            -Dhudson.model.DirectoryBrowserSupport.CSP="sandbox allow-scripts allow-same-origin; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ;"
            
            Show
            mog Morgan Christiansson added a comment - Use this JVM option: -Dhudson.model.DirectoryBrowserSupport.CSP= "sandbox allow-scripts allow-same-origin; default -src 'none' ; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ;"
            Hide
            aleksisimell Aleksi Simell added a comment -

            Michael Gärtner Is this still an issue? Did the above solution help? You can also modify that from your Jenkins instance's script console by using System.setProperty("hudson.model.DirectoryBrowserSupport.CSP","sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ;").

            By default, Jenkins is very restrictive on permissions for external reports, so those permissions need to be relaxed, or you need a resource root URL for your Jenkins instance to display reports.

            Show
            aleksisimell Aleksi Simell added a comment - Michael Gärtner Is this still an issue? Did the above solution help? You can also modify that from your Jenkins instance's script console by using System.setProperty("hudson.model.DirectoryBrowserSupport.CSP","sandbox allow-scripts; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' ;") . By default, Jenkins is very restrictive on permissions for external reports, so those permissions need to be relaxed, or you need a resource root URL for your Jenkins instance to display reports.

              People

              Assignee:
              aleksisimell Aleksi Simell
              Reporter:
              mgaert Michael Gärtner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: