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

Tests panel fails with 500 on POST /api/internal/testruns when "Test Run Progress" column is enabled - invalid Test Step Status link

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Waiting Approval
    • Critical
    • Resolution: Unresolved
    • Xray Cloud 15.0.0
    • None
    • None
    • N/A

    • UNCOVERED

    Description

      Description:

      When the "Test Run Progress" column is added to the Tests panel of a Test Execution issue, the panel fails to load and an "Internal Server Error" toast appears. The backend crashes when computing stepsProgress because a Test Step Status on the affected site has a broken (null) link to its parent Test Status. As a result, POST /api/internal/testruns returns HTTP 500 for every Test Execution on the site. Removing stepsProgress from the fields array (i.e. not requesting the column) returns 200 successfully.

      Pre-conditions:

      • Xray Cloud installed on a Jira Cloud site
      • The site has at least one Test Step Status whose testStatusId link is missing or not properly linked to a Test Status.
      • The "Test Run Progress" column has been enabled in the Tests panel column configuration of any Test Execution

      Steps to reproduce:

      1. On the affected site, open any Test Execution issue in Jira Cloud
      2. In the Tests panel, open the column configuration
      3. Add "Test Run Progress" as a visible column
      4. Observe the panel attempting to reload

      Actual result/Attachments:

      The Tests panel fails to render. POST https://eu.xray.cloud.getxray.app/api/internal/testruns returns HTTP 500. Browser console shows:

        Error while processing datatable data
        AxiosError: Request failed with status code 500, ERR_BAD_RESPONSE
      

      Expected result:

      The Tests panel loads successfully with the "Test Run Progress" column displayed and data populated.

      Attachments

        Issue Links

          Activity

            People

              bernardo.cottim Bernardo Cottim
              victor.tisbierek Victor Tisbierek
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: