Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-9802

Bamboo Test Parser does not handle invalid XML characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Medium
    • None
    • 3.2
    • .NET
    • None

    Description

      For instance, MSTest create test result files with "&#x1F" and Bamboo reports the following exception:

      2011-09-20 15:26:49,337 ERROR [pool-7-thread-1] [MSTestXmlTestResultsParser] Failed to parse xml test results. File was null.
      org.dom4j.DocumentException: Error on line 671 of document : Character reference "&#x1F" is an invalid XML character. Nested exception: Character reference "&#x1F" is an invalid XML character.
      at org.dom4j.io.SAXReader.read(SAXReader.java:355)
      at org.dom4j.io.SAXReader.read(SAXReader.java:261)
      at com.atlassian.bamboo.plugin.dotnet.tests.mstest.MSTestXmlTestResultsParser.parse(MSTestXmlTestResultsParser.java:58)
      at com.atlassian.bamboo.plugin.dotnet.tests.AbstractDotNetTestReportCollector.collect(AbstractDotNetTestReportCollector.java:41)
      at com.atlassian.bamboo.build.test.TestCollationServiceImpl$1$1.run(TestCollationServiceImpl.java:72)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      

      If the character is invalid, Bamboo should be able to just skip it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rbattaglin Renan Battaglin
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: