Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-4662

Exporting tests of test plan fails when there are invalid links

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • R3.5.5
    • REST_API
    • None
    • OK

    Description

      When there are invalid Test Plan and Test links, if the user uses the endpoint below to export the Test cases, it will fail with a Null Pointer Exception.

      /rest/raven/1.0/api/testplan/{testplankey}/test
      

      The root cause of this issue is due to the existence of invalid links between the Test Plan and its Tests - This can be caused, for instance, when changing the Issue Type of one Test issue while having Xray disabled.

      If the user runs the Integrity Checker, it will report that there are invalid links which needs to be fixed. Running the fix should resolve the situation.

      This endpoint should not fail, instead the valid Tests should be exported and this situation should be logged in the logs either in ERROR or WARN level.

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            dmdu David Duarte
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 55 minutes
                3h 55m