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

JUnit Parser does not report errors when finding invalid XML input

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • 6.0 EAP, 6.0.0
    • 3.2
    • Builds, Tests
    • None

    Description

      Currently, if there is a illegal xml character which is created in the Junit xml test result, Bamboo JUnit Parser will ignore the following exception and the build will still be green/successful being build:

      org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x7) was found in the element content of the document.
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at com.atlassian.bamboo.build.test.JunitTestResultsParser.parse(JunitTestResultsParser.java:76)
      at com.atlassian.bamboo.build.test.JunitTestReportCollector.collect(JunitTestReportCollector.java:35)
      at com.atlassian.bamboo.build.test.TestCollationServiceImpl$1$1.run(TestCollationServiceImpl.java:88)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)
      

      Bamboo should at least create an System Error or something similiar, so that someone can react on this problem.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zyap Zed Yap [Atlassian]
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: