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

un-escaped HTML when displaying TAP results

XMLWordPrintable

      When displaying parsed tap results (URLs like
      /jenkins/job/JOB_NAME/BUILD_NUMBER/tapResults/?) the extra YAML properties are not HTML escaped, which can causes display issues.

      For example, my TAP file looks like:

      ok 1
         ---
         actual: (#<ECHECK-DATA {10038520F3}>)
         ...
      0..1
      

      This is valid per the InstantTAP

      The angle brackets in TAP are displayed directly into HTML, and the test message is not displayed. In my browser that gets rendered to HTML as

      <td style="width: auto;">actual</td><td>(#<ECHECK-DATA {10038520F3}>)</td>
      

      I would like it rendered as:

      <td style="width: auto;">actual</td><td>(#&lt;ECHECK-DATA {10038520F3}&gt;)</td>
      

            kinow Bruno P. Kinoshita
            ryepup Ryan Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: