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

HTML publisher 1.9 broken since Jenkins 1.625.3

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • htmlpublisher-plugin
    • None
    • Jenkins LTS version 1.625.3
      HTML publisher plugin 1.9

      After the upgrade from the Jenkins LTS version 1.625.2 to 1.625.3 the HTML report is not displayed. Instead a link "ZIP" and the text "index" is displayed in the upper left corner.
      I am not sure if this is really related to the HTML publisher plugin because its version has not been changed.

          [JENKINS-32026] HTML publisher 1.9 broken since Jenkins 1.625.3

          Bernd Pohl created issue -
          Jake Gage made changes -
          Attachment New: Screen Shot 2015-12-11 at 5.05.06 PM.png [ 31429 ]

          Jake Gage added a comment - - edited

          I'm seeing the same issue:

          and I believe it may be related to iframe permissions. I only see the error in a Jenkins instance answering HTTPS, with multiple console messages:

          Blocked script execution in 'https://my.jenkins.redacted/jenkins/view/Project/job/job_name/Test_Summaries/' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

          Jake Gage added a comment - - edited I'm seeing the same issue: and I believe it may be related to iframe permissions. I only see the error in a Jenkins instance answering HTTPS, with multiple console messages: Blocked script execution in 'https://my.jenkins.redacted/jenkins/view/Project/job/job_name/Test_Summaries/' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
          Jake Gage made changes -
          Attachment New: Screen Shot 2015-12-11 at 5.15.29 PM.png [ 31430 ]

          Jake Gage added a comment - - edited

          Another update— HTML publisher 1.9 itself under the latest Jenkins release works fine for me in HTTP-only environments.

          For clarity, what the original report is describing (seen in the first screen shot attachment), I believe is the browser trying to render the HTML publisher output in the second attachment:

          (Note the "Zip" link in the upper right, and the formatted names of the HTML documents in the tabs, following the "Return to Jenkins Job" link...)

          Jake Gage added a comment - - edited Another update— HTML publisher 1.9 itself under the latest Jenkins release works fine for me in HTTP-only environments. For clarity, what the original report is describing (seen in the first screen shot attachment), I believe is the browser trying to render the HTML publisher output in the second attachment: (Note the "Zip" link in the upper right, and the formatted names of the HTML documents in the tabs, following the "Return to Jenkins Job" link...)

          Daniel Beck added a comment -

          Nice analysis, but none of it was necessary because we know – see the advisory or more specifically the wiki page dedicated to Content Security Policy.

          FWIW I've proposed a PR that resolves the issue and generally meets approval by the author, PR 22, but hasn't yet been released. However, there's a PR build you could download and install. Note however the other limitations on the CSP wiki page.

          Daniel Beck added a comment - Nice analysis, but none of it was necessary because we know – see the advisory or more specifically the wiki page dedicated to Content Security Policy . FWIW I've proposed a PR that resolves the issue and generally meets approval by the author, PR 22 , but hasn't yet been released. However, there's a PR build you could download and install. Note however the other limitations on the CSP wiki page.
          Daniel Beck made changes -
          Assignee New: Daniel Beck [ danielbeck ]
          Daniel Beck made changes -
          Remote Link New: This issue links to "PR 22 (Web Link)" [ 13593 ]
          Daniel Beck made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Jake Gage added a comment -

          Wow— thank you, danielbeck !

          Jake Gage added a comment - Wow— thank you, danielbeck !

            danielbeck Daniel Beck
            berndpohl Bernd Pohl
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: