-
Bug
-
Resolution: Timed out
-
Low
-
None
-
5.10.6, 6.0.1
-
1
-
Severity 3 - Minor
-
Steps to Reproduce:
- Install Confluence
- Create sample Junit Test Result which contain number with separator. Eg: one of the Times is 2,667.156 , use broken-TESTS-TestSuites.xml
- Create a page in Confluence and insert JUnit Report Macro
Expected Behaviour:
Confluence shows test results
Actual Result:
- Error is thrown in UI as per shown:
- In Confluence log trace like below can be found:
2016-11-21 22:29:05,284 ERROR [http-nio-7506-exec-2] [plugins.macros.advanced.JUnitReportMacro] prepareJUnitTestReport Error parsing JUnit report file! -- url: /conf5106/display/CCC/qtw | page: 4587528 | traceId: c39179666d8b3360 | userName: admin | referer: http://localhost:7506/conf5106/pages/createpage.action?spaceKey=CCC&fromPageId=2457628 | action: viewpage org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 109; Error at (2, 109: For input string: "2,667.156" at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) ... Caused by: java.lang.NumberFormatException: For input string: "2,667.156" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.lang.Double.parseDouble(Double.java:538) at com.atlassian.confluence.renderer.radeox.macros.junit.JUnitTestCaseReport.setTimeAsString(JUnitTestCaseReport.java:22)
Workaround
Ensure that the Junit Test Result has <testsuites>... </testsuites> tag to enclosing the testsuite as per working TESTS-TestSuites.xml
[CONFSERVER-45322] Junit Report Macro Cannot Parse Number With Comma as Separator
Workflow | Original: JAC Bug Workflow v3 [ 2902172 ] | New: CONFSERVER Bug Workflow v4 [ 2996758 ] |
Workflow | Original: JAC Bug Workflow v2 [ 2799316 ] | New: JAC Bug Workflow v3 [ 2902172 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JAC Bug Workflow [ 2721982 ] | New: JAC Bug Workflow v2 [ 2799316 ] |
Symptom Severity | Original: Minor [ 14432 ] | New: Severity 3 - Minor [ 15832 ] |
Resolution | New: Timed out [ 10 ] | |
Status | Original: Gathering Impact [ 12072 ] | New: Resolved [ 5 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392182 ] | New: JAC Bug Workflow [ 2721982 ] |
Status | Original: Open [ 1 ] | New: Gathering Impact [ 12072 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 2273087 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392182 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2223599 ] | New: Confluence Workflow - Public Facing - Restricted v5 [ 2273087 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2180467 ] | New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2223599 ] |
Thank you for taking the time to raise, comment or vote on this Bug. We regret to inform you that due to a limited number of reports and based on our current backlog of higher impact issues that we are closing this issue as Timed Out.
If this issue is still impacting you on a recent version please feel free to comment with the affected version. Any further details you may be able to provide regarding reproduction or impact of this issue may help us better address this issue.
Thanks again.
Cheers,
Confluence Product Management