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

Document Jenkins security settings so Robot Framework log/report can be opened

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: robot-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.642, Robot Framework plugin 1.6.2
    • Similar Issues:

      Description

      When trying to open Robot Framework log (or report) I get an error in my browser:
      "...
      Opening Robot Framework log failed

      Verify that you have JavaScript enabled in your browser.
      Make sure you are using a modern enough browser. Firefox 3.5, IE 8, or equivalent is required, newer browsers are recommended.
      Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.
      ..."

      I am using Firefox v. 43 where javascript.enabled is true.

       

      EDIT:

      Per Daniel Beck in this comment, a possible solution to study is used in Cucumber-plugin: https://github.com/jenkinsci/cucumber-reports-plugin/pull/66/files

        Attachments

          Issue Links

            Activity

            Hide
            changming1988 ming chang added a comment -

            I have the same problem, hope to fix it soon. Now I execute the command 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' ;")  to solve it. 

            Show
            changming1988 ming chang added a comment - I have the same problem, hope to fix it soon. Now I execute the command  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' ;")   to solve it. 
            Hide
            bassam_khouri Bassam Khouri added a comment -

            ming chang you will need to execute that command every time Jenkins restarts.  To have Jenkins automatically apply this, get your Jenkins administrator to add a disable_content_security_policy.groovy file under ${JENKINS_HOME}/init.groovy.d with contents similar to the following:

            https://github.com/bkhouri/jenkins_support/blob/master/init.groovy.d/disable_content_security_policy.groovy

             

            Can we mark this JIRA as critical as having to circumvent Jenkins CSP is not ideal.

            Show
            bassam_khouri Bassam Khouri added a comment - ming chang you will need to execute that command every time Jenkins restarts.  To have Jenkins automatically apply this, get your Jenkins administrator to add a disable_content_security_policy.groovy file under ${JENKINS_HOME}/init.groovy.d with contents similar to the following: https://github.com/bkhouri/jenkins_support/blob/master/init.groovy.d/disable_content_security_policy.groovy   Can we mark this JIRA as critical as having to circumvent Jenkins CSP is not ideal.
            Hide
            bassam_khouri Bassam Khouri added a comment -

            Jenkins implemented CSP for valid security reasons.  So I'm changing the priority from Major to Critical as the ideal of circumventing CSP is alot less than ideal.

            Show
            bassam_khouri Bassam Khouri added a comment - Jenkins implemented CSP for valid security reasons.  So I'm changing the priority from Major to Critical as the ideal of circumventing CSP is alot less than ideal.
            Hide
            tattoo Tatu Kairi added a comment -

            Possbile solution to study used in Cucumber-plugin:

            https://github.com/jenkinsci/cucumber-reports-plugin/pull/66/files

            Show
            tattoo Tatu Kairi added a comment - Possbile solution to study used in Cucumber-plugin: https://github.com/jenkinsci/cucumber-reports-plugin/pull/66/files
            Hide
            subodh2691 Subodh Agnihotri added a comment -

            Still facing the issue in Jenkins ver. 2.107.2 for opening report.html of Robot framework.
            Log.html file is coming after workaround suggested, but report.html still displays the same error

            Show
            subodh2691 Subodh Agnihotri added a comment - Still facing the issue in Jenkins ver. 2.107.2 for opening report.html of Robot framework. Log.html file is coming after workaround suggested, but report.html still displays the same error

              People

              • Assignee:
                tarik_remous Tarik Remous
                Reporter:
                romek_es Roman Solus
              • Votes:
                42 Vote for this issue
                Watchers:
                60 Start watching this issue

                Dates

                • Created:
                  Updated: