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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • junit-plugin
    • None
    • any

      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.

          [JENKINS-5982] Test case names with "<text>" are not escaped properly when shown in html

          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

          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

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

              Created:
              Updated:
              Resolved: