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

Test case names with "<text>" are not escaped properly when shown in html

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: junit-plugin
    • Labels:
      None
    • Environment:
      any
    • Similar Issues:

      Description

      If the test name contains "<" then it are outputed as html "<" and not escaped properly into "<".

      I got an issue with the NUnit plugin that contain parameterized tests and they output a JUnit file with test case names containing "Vizrt.Utilities.Tests.TestByteStringParser<UTF8Encoding>". This is shown as "TestByteStringParser<UTF8Encoding>" in the HTML which of course is wrong as you dont see the UTF8Encoding bit.

      Ive attached a sample of the junitResult.xml which can be found in each build folder.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/resources/hudson/tasks/junit/ClassResult/body.jelly
          trunk/hudson/main/core/src/main/resources/hudson/tasks/test/AbstractTestResultAction/summary.jelly
          trunk/hudson/main/core/src/main/resources/hudson/tasks/test/MetaTabulatedResult/body.jelly
          trunk/hudson/main/core/src/main/resources/hudson/tasks/test/TestResult/index.jelly
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/28939
          Log:
          [FIXED JENKINS-5982] add st:out for class/test names in a few places,
          in case those names have < character

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/resources/hudson/tasks/junit/ClassResult/body.jelly trunk/hudson/main/core/src/main/resources/hudson/tasks/test/AbstractTestResultAction/summary.jelly trunk/hudson/main/core/src/main/resources/hudson/tasks/test/MetaTabulatedResult/body.jelly trunk/hudson/main/core/src/main/resources/hudson/tasks/test/TestResult/index.jelly trunk/www/changelog.html http://jenkins-ci.org/commit/28939 Log: [FIXED JENKINS-5982] add st:out for class/test names in a few places, in case those names have < character

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              redsolo redsolo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: