[JIRA] [htmlpublisher-plugin] (JENKINS-32281) HTML report shows "Checksum mismatch"

158 views
Skip to first unread message

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 4, 2016, 1:47:03 PM1/4/16
to jenkinsc...@googlegroups.com
Anthony Mastrean created an issue
 
Jenkins / Bug JENKINS-32281
HTML report shows "Checksum mismatch"
Issue Type: Bug Bug
Assignee: mcrooney
Attachments: report.PNG
Components: htmlpublisher-plugin
Created: 04/Jan/16 6:46 PM
Environment: Jenkins ver. 1.643,
HTML Publisher plugin 1.10
Priority: Minor Minor
Reporter: Anthony Mastrean

I publish several HTML reports after a build and after sorting out the Content Security Policy updates, one error remains.

> Checksum mismatch

> The checksum of the current wrapper file (5ea0d2ed1f4d0710e3ceaa8d2c3d9b35a3a13475) does not match the recorded checksum (6db1021567d9b39bdcd2b32a86e1dad589f620dd). This indicates a possible security issue, therefore Jenkins will not serve this file. You can access the archived HTML files here.

I don't know what this means or how to address it and I can't find any information in the HTML publisher plugin docs.

Each report is configured like this one

A similar problem goes unanswered on Stack Overflow: http://stackoverflow.com/questions/34419223/jenkins-html-publisher-plugin-checksum-mismatch

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 4, 2016, 1:48:02 PM1/4/16
to jenkinsc...@googlegroups.com
Anthony Mastrean updated an issue
Change By: Anthony Mastrean
I publish several HTML reports after a build and after sorting out the Content Security Policy updates, one error remains.

{quote}

Checksum mismatch

The checksum of the current wrapper file (5ea0d2ed1f4d0710e3ceaa8d2c3d9b35a3a13475) does not match the recorded checksum (6db1021567d9b39bdcd2b32a86e1dad589f620dd). This indicates a possible security issue, therefore Jenkins will not serve this file. You can access the archived HTML files here.
{quote}

I don't know what this means or how to address it and I can't find any information in the HTML publisher plugin docs. Each report is configured like this one:

!report.PNG
|thumbnail !


A similar problem goes unanswered on Stack Overflow: http://stackoverflow.com/questions/34419223/jenkins-html-publisher-plugin-checksum-mismatch

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 4, 2016, 1:48:04 PM1/4/16
to jenkinsc...@googlegroups.com

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 4, 2016, 1:50:04 PM1/4/16
to jenkinsc...@googlegroups.com
Anthony Mastrean commented on Bug JENKINS-32281
 
Re: HTML report shows "Checksum mismatch"

I tried wiping out the workspace and that didn't change anything.

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 4, 2016, 1:53:01 PM1/4/16
to jenkinsc...@googlegroups.com
Anthony Mastrean updated an issue
Change By: Anthony Mastrean
I publish several HTML reports after a build and after sorting out the Content Security Policy updates, one error remains.

{quote}
Checksum mismatch

The checksum of the current wrapper file (5ea0d2ed1f4d0710e3ceaa8d2c3d9b35a3a13475) does not match the recorded checksum (6db1021567d9b39bdcd2b32a86e1dad589f620dd). This indicates a possible security issue, therefore Jenkins will not serve this file. You can access the archived HTML files here.
{quote}

I don't know what this means or how to address it and I can't find any information in the HTML publisher plugin docs. Each report is configured like this one:

!report.PNG!

The problem only occurs when I click on the project-level report. For the report named Tests, that would be a link like

{code}
https://example.com/job/ExampleProject/Tests/
{code}

A similar problem goes unanswered on Stack Overflow: http://stackoverflow.com/questions/34419223/jenkins-html-publisher-plugin-checksum-mismatch

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 4, 2016, 1:54:01 PM1/4/16
to jenkinsc...@googlegroups.com
Anthony Mastrean updated an issue
I publish several HTML reports after a build and after sorting out the Content Security Policy updates, one error remains.

{quote}
Checksum mismatch

The checksum of the current wrapper file (5ea0d2ed1f4d0710e3ceaa8d2c3d9b35a3a13475) does not match the recorded checksum (6db1021567d9b39bdcd2b32a86e1dad589f620dd). This indicates a possible security issue, therefore Jenkins will not serve this file. You can access the archived HTML files here.
{quote}

I don't know what this means or how to address it and I can't find any information in the HTML publisher plugin docs. Each report is configured like this one:

!report.PNG!

The problem only occurs when I click on the project-level report.  If I click the build-specific report, it displays fine.  For the report named Tests, that would be a link like

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 4, 2016, 1:55:02 PM1/4/16
to jenkinsc...@googlegroups.com
Anthony Mastrean updated an issue
I publish several HTML reports after a build and after sorting out the Content Security Policy updates, one error remains.

{quote}
Checksum mismatch

The checksum of the current wrapper file (5ea0d2ed1f4d0710e3ceaa8d2c3d9b35a3a13475) does not match the recorded checksum (6db1021567d9b39bdcd2b32a86e1dad589f620dd). This indicates a possible security issue, therefore Jenkins will not serve this file. You can access the archived HTML files here.
{quote}

I don't know what this means or how to address it and I can't find any information in the HTML publisher plugin docs. Each report is configured like this one:

!report.PNG!

The problem only occurs when I click on the project-level report  link, for example:

{code}
https://example
. com/job/ExampleProject/Tests/
{code}

 If I click the build-specific report, it displays fine . For the report named Tests ,  that would be a link like  for example:

{code}
https://example.com/job/ExampleProject/
101/ Tests/
{code}

A similar The same  problem goes unanswered on Stack Overflow: http://stackoverflow.com/questions/34419223/jenkins-html-publisher-plugin-checksum-mismatch

dbeck@cloudbees.com (JIRA)

unread,
Jan 4, 2016, 2:52:02 PM1/4/16
to jenkinsc...@googlegroups.com
Daniel Beck commented on Bug JENKINS-32281
 
Re: HTML report shows "Checksum mismatch"

Ugh. This shouldn't happen…

Could you provide the wrapper HTML file archived in Jenkins next to the HTML report, as well as the build XML?

dbeck@cloudbees.com (JIRA)

unread,
Jan 4, 2016, 2:52:03 PM1/4/16
to jenkinsc...@googlegroups.com
Daniel Beck assigned an issue to Daniel Beck
 
Change By: Daniel Beck
Assignee: mcrooney Daniel Beck

dbeck@cloudbees.com (JIRA)

unread,
Jan 4, 2016, 2:53:03 PM1/4/16
to jenkinsc...@googlegroups.com
Daniel Beck edited a comment on Bug JENKINS-32281
Ugh. This shouldn't happen…

Could you provide the wrapper HTML file archived in Jenkins next to the HTML report, as well as the  {{  build  XML .xml}} file ?

dbeck@cloudbees.com (JIRA)

unread,
Jan 4, 2016, 2:57:02 PM1/4/16
to jenkinsc...@googlegroups.com

The job's config.xml can't hurt either.

dbeck@cloudbees.com (JIRA)

unread,
Jan 4, 2016, 3:02:05 PM1/4/16
to jenkinsc...@googlegroups.com

What happens starting in HTML Publisher 1.10 is that the generated HTML Publisher wrapper file gets its checksum recorded during creation, and that checksum is stored in the build.xml.

Before serving the file afterwards, if the checksum in the build.xml is present (for backward compatibility), it gets recalculated from the archived file. If there's a mismatch, the file isn't served.

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 5, 2016, 10:07:02 AM1/5/16
to jenkinsc...@googlegroups.com

Is the wrapper file something I'd get off the filesystem of the Jenkins server (and not through the web interface)?

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 5, 2016, 12:20:04 PM1/5/16
to jenkinsc...@googlegroups.com
Anthony Mastrean updated an issue

I'm uncomfortable uploading the entire build or config file (there's some sensitive URLs, etc in these files), so let me snip the relevant parts. Let me know if you need more.

build.xml

    <htmlpublisher.HtmlPublisherTarget_-HTMLBuildAction plugin="htmlpu...@1.10">
      <actualHtmlPublisherTarget>
        <reportName>Tests</reportName>
        <reportDir>bin/reports/unittest</reportDir>
        <reportFiles>index.html</reportFiles>
        <alwaysLinkToLastBuild>true</alwaysLinkToLastBuild>
        <keepAll>true</keepAll>
        <allowMissing>true</allowMissing>
      </actualHtmlPublisherTarget>
      <outer-class reference="../actualHtmlPublisherTarget"/>
      <wrapperChecksum>5ea0d2ed1f4d0710e3ceaa8d2c3d9b35a3a13475</wrapperChecksum>
      <outer-class defined-in="htmlpublisher.HtmlPublisherTarget$HTMLBuildAction" reference="../actualHtmlPublisherTarget"/>
    </htmlpublisher.HtmlPublisherTarget_-HTMLBuildAction>

config.xml

    <htmlpublisher.HtmlPublisher plugin="htmlpu...@1.10">
      <reportTargets>
        <htmlpublisher.HtmlPublisherTarget>
          <reportName>Tests</reportName>
          <reportDir>bin/reports/unittest</reportDir>
          <reportFiles>index.html</reportFiles>
          <alwaysLinkToLastBuild>true</alwaysLinkToLastBuild>
          <keepAll>true</keepAll>
          <allowMissing>true</allowMissing>
        </htmlpublisher.HtmlPublisherTarget>
      </reportTargets>
    </htmlpublisher.HtmlPublisher>
Change By: Anthony Mastrean
Attachment: htmlpublisher-wrapper.html

david.ferran@gmail.com (JIRA)

unread,
Jan 21, 2016, 12:40:21 PM1/21/16
to jenkinsc...@googlegroups.com
dave Ferran updated an issue
Change By: dave Ferran
Priority: Minor Major

david.ferran@gmail.com (JIRA)

unread,
Jan 21, 2016, 1:03:01 PM1/21/16
to jenkinsc...@googlegroups.com
Dave Ferran commented on Bug JENKINS-32281
 
Re: HTML report shows "Checksum mismatch"

I am also seeing this issue after I have updated to Jenkins 1.645 and updating HTML Publisher Plugin from 1.06 to 1.10. Please let me know if more details are needed.

build.xml
<htmlpublisher.HtmlPublisherTarget_-HTMLBuildAction plugin="htmlpu...@1.10">
<actualHtmlPublisherTarget>

<reportName>WUG TA HTML Report</reportName>
<reportDir>nm\QA_Automation\v17.0\WUGEmailableReport</reportDir>
<reportFiles>Results.html</reportFiles>
<alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>


<keepAll>true</keepAll>
<allowMissing>true</allowMissing>
</actualHtmlPublisherTarget>
<outer-class reference="../actualHtmlPublisherTarget"/>

<wrapperChecksum>b804be0e5318971e835d34f9aa44b2f0962f83bc</wrapperChecksum>


<outer-class defined-in="htmlpublisher.HtmlPublisherTarget$HTMLBuildAction" reference="../actualHtmlPublisherTarget"/>
</htmlpublisher.HtmlPublisherTarget_-HTMLBuildAction>

<htmlpublisher.HtmlPublisherTarget_-HTMLBuildAction plugin="htmlpu...@1.10">
<actualHtmlPublisherTarget>
<reportName>TestNG XSLT Report</reportName>
<reportDir>nm\QA_Automation\v17.0\testng-xslt</reportDir>
<reportFiles>index.html</reportFiles>
<alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>


<keepAll>true</keepAll>
<allowMissing>true</allowMissing>
</actualHtmlPublisherTarget>
<outer-class reference="../actualHtmlPublisherTarget"/>

<wrapperChecksum>796cbf0a49a412ba89a93f58bbf63abf9f5af936</wrapperChecksum>


<outer-class defined-in="htmlpublisher.HtmlPublisherTarget$HTMLBuildAction" reference="../actualHtmlPublisherTarget"/>
</htmlpublisher.HtmlPublisherTarget_-HTMLBuildAction>

<htmlpublisher.HtmlPublisherTarget_-HTMLBuildAction plugin="htmlpu...@1.10">
<actualHtmlPublisherTarget>
<reportName>ST Email HTML Report</reportName>
<reportDir>nm\QA_Automation\v17.0\SanityTestEmailReport</reportDir>
<reportFiles>STEmailReport.html</reportFiles>
<alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>


<keepAll>true</keepAll>
<allowMissing>true</allowMissing>
</actualHtmlPublisherTarget>
<outer-class reference="../actualHtmlPublisherTarget"/>

<wrapperChecksum>ffc2f816b50b1c16b1039117586a3b4077678142</wrapperChecksum>


<outer-class defined-in="htmlpublisher.HtmlPublisherTarget$HTMLBuildAction" reference="../actualHtmlPublisherTarget"/>
</htmlpublisher.HtmlPublisherTarget_-HTMLBuildAction>
config.xml

<publishers>


<htmlpublisher.HtmlPublisher plugin="htmlpu...@1.10">
<reportTargets>
<htmlpublisher.HtmlPublisherTarget>

<reportName>WUG TA HTML Report</reportName>
<reportDir>nm\QA_Automation\v17.0\WUGEmailableReport</reportDir>
<reportFiles>Results.html</reportFiles>
<alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>


<keepAll>true</keepAll>
<allowMissing>true</allowMissing>
</htmlpublisher.HtmlPublisherTarget>

<htmlpublisher.HtmlPublisherTarget>
<reportName>TestNG XSLT Report</reportName>
<reportDir>nm\QA_Automation\v17.0\testng-xslt</reportDir>
<reportFiles>index.html</reportFiles>
<alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>


<keepAll>true</keepAll>
<allowMissing>true</allowMissing>
</htmlpublisher.HtmlPublisherTarget>

<htmlpublisher.HtmlPublisherTarget>
<reportName>ST Email HTML Report</reportName>
<reportDir>nm\QA_Automation\v17.0\SanityTestEmailReport</reportDir>
<reportFiles>STEmailReport.html</reportFiles>
<alwaysLinkToLastBuild>false</alwaysLinkToLastBuild>


<keepAll>true</keepAll>
<allowMissing>true</allowMissing>
</htmlpublisher.HtmlPublisherTarget>
</reportTargets>
</htmlpublisher.HtmlPublisher>

</publishers>

dbeck@cloudbees.com (JIRA)

unread,
Jan 21, 2016, 4:53:03 PM1/21/16
to jenkinsc...@googlegroups.com

Are all of you on Windows (Jenkins master)?

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 22, 2016, 12:19:04 PM1/22/16
to jenkinsc...@googlegroups.com

I'm running the master on CentOS 6

dbeck@cloudbees.com (JIRA)

unread,
Jan 22, 2016, 12:39:01 PM1/22/16
to jenkinsc...@googlegroups.com

Please provide the output of the following script when run in Manage Jenkins » Script Console:

java.nio.charset.Charset.defaultCharset()

tal.machani@idomoo.com (JIRA)

unread,
Jan 22, 2016, 2:43:02 PM1/22/16
to jenkinsc...@googlegroups.com

Have the same issue.

Master is on Ubuntu 15.04

And the script output is:
UTF-8

anthony.mastrean@gmail.com (JIRA)

unread,
Jan 22, 2016, 3:36:05 PM1/22/16
to jenkinsc...@googlegroups.com

david.ferran@gmail.com (JIRA)

unread,
Jan 24, 2016, 10:21:02 PM1/24/16
to jenkinsc...@googlegroups.com

jonathan.wolfe@oracle.com (JIRA)

unread,
Feb 3, 2016, 6:03:01 AM2/3/16
to jenkinsc...@googlegroups.com

I also have the problem that I usually get the "Checksum mismatch" error. (Jenkins and all plugins are up-to-date.)
I hope I can shed some light on the problem. There are certain conditions I have noticed.

  • The problem does not occur when there is a single HTML report.
  • The problem does not occur for the first HTML report.
  • The incorrect checksum is reported, an example:
    "The checksum of the current wrapper file (checksum from 2nd report) does not match the recorded checksum (checksum from 1st report)."
  • Sometimes no error is reported, so it may not be deterministic.
  • The problem does not occur if you select the job and open the report from left column.
    Checksum error -> http://.../job/JOB-NAME/HTML-NAME
    No checksum error -> http://.../job/JOB-NAME/JOB-ID/HTML-NAME

dbeck@cloudbees.com (JIRA)

unread,
Feb 3, 2016, 6:55:02 AM2/3/16
to jenkinsc...@googlegroups.com

Jon Wxxxx Thanks for the detailed analysis! It helps a lot. I'll see what I can do. I'll be traveling next week, so I hope to get this done this week. No promises though.

jocce.nilsson@gmail.com (JIRA)

unread,
Feb 3, 2016, 7:03:01 AM2/3/16
to jenkinsc...@googlegroups.com

Same issue

RHEL 6.5
Jenkins 1.645
HTML Publisher plugin 1.10

Output from script console: UTF-8

jocce.nilsson@gmail.com (JIRA)

unread,
Feb 3, 2016, 7:04:02 AM2/3/16
to jenkinsc...@googlegroups.com
Joachim Nilsson edited a comment on Bug JENKINS-32281
Same issue

RHEL 6.5
Jenkins 1.645
HTML Publisher plugin 1.10

Output from script console: UTF-8


Great finding Jon! Yes that is applicable for us as well, we have several reports per job.

dbeck@cloudbees.com (JIRA)

unread,
Feb 3, 2016, 7:25:02 AM2/3/16
to jenkinsc...@googlegroups.com

jonathan.wolfe@oracle.com (JIRA)

unread,
Feb 3, 2016, 8:14:01 AM2/3/16
to jenkinsc...@googlegroups.com

Thanks for the quick fix. I only tested it superficially, but it looks good.

jocce.nilsson@gmail.com (JIRA)

unread,
Feb 3, 2016, 9:15:04 AM2/3/16
to jenkinsc...@googlegroups.com
Joachim Nilsson edited a comment on Bug JENKINS-32281
Same issue

RHEL 6.5
Jenkins 1.645
HTML Publisher plugin 1.10

Output from script console: UTF-8


Great finding Jon! Yes that is applicable for us as well, we have several reports per job.

Note: I cannot reproduce the error if I only create 2 reports, I also must mark the publishing option: 'Keep past HTML reports'

jonathan.wolfe@oracle.com (JIRA)

unread,
Feb 3, 2016, 9:19:02 AM2/3/16
to jenkinsc...@googlegroups.com

> Note: I cannot reproduce the error if I only create 2 reports, I also must mark the publishing option: 'Keep past HTML reports'

This was my experience as well but I was unsure about it and not sure if it was relevant.

jocce.nilsson@gmail.com (JIRA)

unread,
Feb 3, 2016, 9:19:02 AM2/3/16
to jenkinsc...@googlegroups.com

I also tested it briefly, looks OK for me as well.

dbeck@cloudbees.com (JIRA)

unread,
Feb 3, 2016, 9:53:12 AM2/3/16
to jenkinsc...@googlegroups.com

Yep, it's important, otherwise a different branch in the code is taken. So you need a) multiple reports per build, b) archiving reports of past builds, c) access reports through project-level links. Therefore the instructions how to reproduce the issue were essential.

(This is really a bit of a hack because if you archive reports for past build, it switches to a different mode in which reports are attached to builds rather than to the project, and the project-level links essentially forward to the build-level archive… and that's where I messed up the checksum change for 1.10 – but it's only apparent when you archive multiple different reports.)

dbeck@cloudbees.com (JIRA)

unread,
Feb 3, 2016, 9:54:06 AM2/3/16
to jenkinsc...@googlegroups.com
Daniel Beck started work on Bug JENKINS-32281
 
Change By: Daniel Beck
Status: Open In Progress

scm_issue_link@java.net (JIRA)

unread,
Feb 4, 2016, 10:02:03 PM2/4/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Daniel Beck
Path:
src/main/java/htmlpublisher/HtmlPublisherTarget.java
http://jenkins-ci.org/commit/htmlpublisher-plugin/014ee3838bc5a617e2cf6474423099c34e947abe
Log:
[FIX JENKINS-32281] Consider multiple reports per build

scm_issue_link@java.net (JIRA)

unread,
Feb 4, 2016, 10:02:05 PM2/4/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon resolved as Fixed
 
Change By: SCM/JIRA link daemon
Status: In Progress Resolved
Resolution: Fixed

scm_issue_link@java.net (JIRA)

unread,
Feb 4, 2016, 10:03:01 PM2/4/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Mike Rooney
Path:
src/main/java/htmlpublisher/HtmlPublisherTarget.java
http://jenkins-ci.org/commit/htmlpublisher-plugin/9dd6fe1ea02d48ea411125b54369752f5be4f494
Log:
Merge pull request #23 from daniel-beck/

JENKINS-32281

[FIX JENKINS-32281] Consider multiple reports per build

mcrooney@java.net (JIRA)

unread,
Feb 4, 2016, 10:12:01 PM2/4/16
to jenkinsc...@googlegroups.com
mcrooney commented on Bug JENKINS-32281

Released as HTML Publisher 1.11, let us know how it works for you

anthony.mastrean@gmail.com (JIRA)

unread,
Feb 5, 2016, 12:47:02 PM2/5/16
to jenkinsc...@googlegroups.com

I converted all of my custom reports to plugin-based-reports! If no one else can repro the fix, I'll try to spin up one of my older configurations.

Reply all
Reply to author
Forward
0 new messages