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

            romek_es Roman Solus created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Component/s robot-plugin [ 15773 ]
            Component/s _unsorted [ 19622 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ] jpiironen [ jpiironen ]
            tkahler Thorsten Kahler made changes -
            Link This issue duplicates JENKINS-32077 [ JENKINS-32077 ]
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-32077 [ JENKINS-32077 ]
            danielbeck Daniel Beck made changes -
            Link This issue duplicates JENKINS-32077 [ JENKINS-32077 ]
            zilahir Richard Zialhi made changes -
            Comment [ hi guys. i am still facing this issue, after updating the java options, as suggested above:

            echo $JENKINS_JAVA_OPTIONS
            -Dhudson.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' ;"

            any idea would be really appreciated. ]
            tarik_remous Tarik Remous made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Assignee jpiironen [ jpiironen ] Tarik Remous [ tarik_remous ]
            Resolution Fixed [ 1 ]
            tarik_remous Tarik Remous made changes -
            Comment [ For resolve your problem you must :
             - Connect on your jenkins url (http://[IP]:8080/)
             - Click on administer Jenkins
             - Click on consol jenkins
             - Copy this into the field and execute :
                       {color:#d04437}_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' ;")_{color}

            ]
            tarik_remous Tarik Remous made changes -
            Comment [ For resolve your problem you must :

                Connect on your jenkins url (http://[IP]:8080/)
                Click on administer Jenkins
                Click on consol jenkins
                Copy this into the field and execute :
                _{color:#d04437}*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' ;")*{color}_

            ]
            tarik_remous Tarik Remous made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 167601 ] JNJira + In-Review [ 186336 ]
            uriesk Andreas Gattringer made changes -
            Comment [ Same problem.
            I tried your workaround and it works on Firefox, Internet Explorer and Edge, but it doesn't work on chrome. ]
            selurvedu selur vedu made changes -
            Link This issue is duplicated by JENKINS-38338 [ JENKINS-38338 ]
            alec_m Alec Matschiner made changes -
            Attachment Selection_243.png [ 35127 ]
            tattoo Tatu Kairi made changes -
            Summary Opening Robot Framework log failed Document Jenkins security settings so Robot Framework log/report can be opened
            bassam_khouri Bassam Khouri made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            bassam_khouri Bassam Khouri made changes -
            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.
            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 [~danielbeck] in [this comment|#comment-268226], a possible solution to study is used in Cucumber-plugin: https://github.com/jenkinsci/cucumber-reports-plugin/pull/66/files
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-904 (Web Link)" [ 18804 ]
            subodh2691 Subodh Agnihotri made changes -
            Attachment JENKINS-32118.png [ 42256 ]
            subodh2691 Subodh Agnihotri made changes -
            Status Reopened [ 4 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]
            tattoo Tatu Kairi made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            Assignee Tarik Remous [ tarik_remous ] jpiironen [ jpiironen ]

              People

              • Assignee:
                jpiironen jpiironen
                Reporter:
                romek_es Roman Solus
              • Votes:
                45 Vote for this issue
                Watchers:
                63 Start watching this issue

                Dates

                • Created:
                  Updated: