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

404 error when opening a test result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: junit-plugin
    • Labels:
      None
    • Environment:
      junit-plugin 1.5
    • Similar Issues:

      Description

      Opening a test result with a empty className tag in junitReport.xml file results in a 404 page. For those, generated URL to open the test result page is lacking className. URL looks like this: http://JENKINS/job/junit/1/testReport/junit/(root)//testName/

      There's just '//' in place of /className/ in the URL. This causes PackageResult.getDynamic() to fail to lookup the TestResult.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Yoann Dubreuil
            Path:
            src/main/java/hudson/tasks/test/TestObject.java
            http://jenkins-ci.org/commit/junit-plugin/07deb07ba72824d530c746e99bdcb4515637f081
            Log:
            [FIXED JENKINS-27974]: Safe URL for empty className

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Yoann Dubreuil Path: src/main/java/hudson/tasks/test/TestObject.java http://jenkins-ci.org/commit/junit-plugin/07deb07ba72824d530c746e99bdcb4515637f081 Log: [FIXED JENKINS-27974] : Safe URL for empty className
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Yoann Dubreuil
            Path:
            src/main/java/hudson/tasks/test/TestObject.java
            http://jenkins-ci.org/commit/junit-plugin/c2dfcabb24589976b2e90c5ba5d61e044bb23481
            Log:
            [FIXED JENKINS-27974]: Use StringUtils.isBlank and add javadoc

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Yoann Dubreuil Path: src/main/java/hudson/tasks/test/TestObject.java http://jenkins-ci.org/commit/junit-plugin/c2dfcabb24589976b2e90c5ba5d61e044bb23481 Log: [FIXED JENKINS-27974] : Use StringUtils.isBlank and add javadoc
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/hudson/tasks/test/TestObject.java
            http://jenkins-ci.org/commit/junit-plugin/4e0eaee031058cfb62ee9d3037f975d0cfe727e0
            Log:
            Merge pull request #16 from ydubreuil/empty-classname-hardening

            JENKINS-27974: Safe URL for empty className

            Compare: https://github.com/jenkinsci/junit-plugin/compare/ba51b564f205...4e0eaee03105

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/tasks/test/TestObject.java http://jenkins-ci.org/commit/junit-plugin/4e0eaee031058cfb62ee9d3037f975d0cfe727e0 Log: Merge pull request #16 from ydubreuil/empty-classname-hardening JENKINS-27974 : Safe URL for empty className Compare: https://github.com/jenkinsci/junit-plugin/compare/ba51b564f205...4e0eaee03105

              People

              • Assignee:
                ydubreuil Yoann Dubreuil
                Reporter:
                ydubreuil Yoann Dubreuil
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: