Open YvesL-RVAONEM opened 1 year ago
Windows Server 2016 Dadacenter
CEDRIC_UI_20230601_125633.rxlog.junit.xml.zip
Normal log for the plugin is:
_File found: [...] Starting to import results from [...] Response: (200) {"testExecIssue":{"id":"39105","key":"CBK-3595","self":"http://jira/rest/api/2/issue/39105"},"testIssues":{"success": [...] Successfully imported JUnit XML results from [...] XRAY_IS_REQUEST_SUCCESSFUL: true__
Upload Failed! Status:400 Response:{"error":"Invalid xml file: Non-whitespace before first tag. Line: 0 Column: 1 Char: ï"}
Full log is :
09:34:38 Starting XRAY: Results Import Task... 09:34:38 ########################################################## 09:34:38 #### Xray is importing the execution results #### 09:34:38 ########################################################## 09:34:39 File found: C:\Program Files (x86)\Jenkins\workspace\CEDRIC UI - SMOKE AND SANITY - PROD\CEDRIC-UI\bin\Debug\CEDRIC_UI_20230608_075743.rxlog.junit.xml 09:34:39 Starting to import results from CEDRIC_UI_20230608_075743.rxlog.junit.xml 09:34:39 ERROR: Step ?Xray: Results Import Task? failed: Unable to confirm Result of the upload..... Upload Failed! Status:400 Response:{"error":"Invalid xml file: Non-whitespace before first tag. Line: 0 Column: 1 Char: ï"} 09:34:39 Finished: FAILURE
The connection to the Jira Cloud site has been successfully tested In Jenkins. The xml file isn't corrupted; it opens using any capable program.
The export to a Xray SERVER site , using the same xml, doesn't return any error ! This error only occurs when exporting to Xray Cloud !
VERSIONS:
It appears that this issue is caused by the presence of a BOM at the beginning of the xml file. While this isn't a problem when exporting to Xray Server, it causes an error while exporting to Xray Cloud.
Jenkins and plugins versions report
Environment
```text Paste the output here ```What Operating System are you using (both controller, and any agents involved in the problem)?
Windows Server 2016 Dadacenter
Reproduction steps
CEDRIC_UI_20230601_125633.rxlog.junit.xml.zip
Expected Results
Normal log for the plugin is:
_File found: [...] Starting to import results from [...] Response: (200) {"testExecIssue":{"id":"39105","key":"CBK-3595","self":"http://jira/rest/api/2/issue/39105"},"testIssues":{"success": [...] Successfully imported JUnit XML results from [...] XRAY_IS_REQUEST_SUCCESSFUL: true__
Actual Results
Upload Failed! Status:400 Response:{"error":"Invalid xml file: Non-whitespace before first tag. Line: 0 Column: 1 Char: ï"}
Full log is :
09:34:38 Starting XRAY: Results Import Task... 09:34:38 ########################################################## 09:34:38 #### Xray is importing the execution results #### 09:34:38 ########################################################## 09:34:39 File found: C:\Program Files (x86)\Jenkins\workspace\CEDRIC UI - SMOKE AND SANITY - PROD\CEDRIC-UI\bin\Debug\CEDRIC_UI_20230608_075743.rxlog.junit.xml 09:34:39 Starting to import results from CEDRIC_UI_20230608_075743.rxlog.junit.xml 09:34:39 ERROR: Step ?Xray: Results Import Task? failed: Unable to confirm Result of the upload..... Upload Failed! Status:400 Response:{"error":"Invalid xml file: Non-whitespace before first tag. Line: 0 Column: 1 Char: ï"} 09:34:39 Finished: FAILURE
Anything else?
The connection to the Jira Cloud site has been successfully tested In Jenkins. The xml file isn't corrupted; it opens using any capable program.
The export to a Xray SERVER site , using the same xml, doesn't return any error ! This error only occurs when exporting to Xray Cloud !
VERSIONS: