Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-7537

If there is "%" included in Test properties it throws 500

    XporterXMLWordPrintable

Details

    • Bug
    • Status: To CD release
    • Medium
    • Resolution: Unresolved
    • Xray Cloud - V4.8.2-1
    • FPC#13
    • None
    • XRAYCLOUD 2024 Sprint 11
    • OK

    Description

      Description:

      If the XML results file has a property that includes the symbol %, then, it throws 500 error with "error": "Internal Application Error!"

      Pre-conditions:

      Create an XML results file that has property value text including % symbol.

      Refer to the attachment added to the sample file.

      How to reproduce

      • Try importing results file via REST API - JUnit XML result
      • curl -H "Content-Type: text/xml" -X POST -H "Authorization: Bearer $token"  --data @"data.xml" https://xray.cloud.getxray.app/api/v1/import/execution/junit?projectKey=XTP
      • You can even try to import the file from the UI. Open a Test Execution and click on Import Execution Results.
      • Select the XML results file

      Actual result/Attachments:

      Via REST API, there is 500 Status with 
      "error": "Internal Application Error!"

      From the UI we see error: Fine not in a Supported format 

      Expected result:

      The results should be imported.

      Version

      • Xray Cloud 4.8.2-1

      Workaround:

      Replace the % symbol inside the XML while importing.

       

      Attachments

        Activity

          People

            apsp Ana Patricio
            jayanthi.murthi Jayanthi Murthi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: