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

Certain links generate a 404 response for published HTML reports

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • htmlpublisher-plugin
    • None
    • Jenkins 2.50 (Linux), htmlpublisher 1.12

      I'm generating HTML using https://esdoc.org/ and I'm "attaching" it to the build using the publishHTML pipeline build step. That works, but for some reason not all links when clicking through the HTML work. Instead some links return a 404 error. When I try to download the zip and open it locally, then everything is working as expected.

      I'm not sure if this is a bug in Jenkins (the inaccessible links contain a tilde which makes me suspicious), the plugin, or a problem with my Jenkins configuration. The fact that I get a 404 from Jenkins suggests that it's not an issue with the Content Security Policy.

          [JENKINS-42935] Certain links generate a 404 response for published HTML reports

          Ingo Kuehn added a comment -

          Similar issue. We found that the plugin generates a http absolute URL instead of a relative one. Now, if Jenkins is behind a proxy (https...) http:// links are responding w/ Error Connection refused. Solution would be to have a relative link generated.

          Ingo Kuehn added a comment - Similar issue. We found that the plugin generates a http absolute URL instead of a relative one. Now, if Jenkins is behind a proxy (https...) http:// links are responding w/ Error Connection refused. Solution would be to have a relative link generated.

          Not sure if this is still an issue but, if it is, can you please provide a sample of the problematic HTML?

          Richard Bywater added a comment - Not sure if this is still an issue but, if it is, can you please provide a sample of the problematic HTML?

          Hi - this issue has been without comment for some time so closing for now. Please feel free to re-open / re-report should this still be an issue for you based on the information provided. Thanks

          Richard Bywater added a comment - Hi - this issue has been without comment for some time so closing for now. Please feel free to re-open / re-report should this still be an issue for you based on the information provided. Thanks

            r2b2_nz Richard Bywater
            urbanhafner Urban Hafner
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: