Details
-
Bug
-
Status: Waiting Approval
-
Medium
-
Resolution: Unresolved
-
Xray Cloud 10.0.1 [Silent Release 26.5]
-
None
-
Postman for Mac, Version 12.7.6
macOS 26.3
Description
Description
/api/v2/export/cucumber returns 500 "Internal Application Error!" when an export pulls in a Cucumber test linked to an archived requirement and the global setting "Generate features by requirements" is on.
The exporter appears to attempt construction of the @REQ<key> tag for the linked requirement. The lookup fails on the archived issue, and the resulting exception is not handled and it surfaces to the caller as a generic 500 with no actionable detail._
Pre-conditions
- Xray Cloud
- Cucumber Settings → Generate features by requirements enabled
- A Cucumber test linked to a Requirement via the Xray "tests" link
- The linked requirement is archived in Jira
- A Test Execution containing that test
How to reproduce
- Create a Cucumber test with any valid Gherkin scenario.
- Link it to a Story via the Xray "tests" link.
- Add the test to a Test Execution.
- Enable "Generate features by requirements"
- Archive the Story.
- GET /api/v2/export/cucumber?keys=<TestExecutionKey> with a valid Bearer token.
Actual result/Attachments
HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=utf-8
ETag: W/"27-cYRnXRR93cPrq7A4d4C00Ae3v7s"
Content-Length: 39
same internal failure path.
Expected result
The endpoint should either skip archived linked requirements during tag generation and return a successful 200 response, or return an appropriate 4xx status code that identifies the offending issue key in the response payload. In its current state, the API consumer has no means of determining which issue is causing the failure.
Version
- Xray Cloud, 10.0.1
Workaround
Unarchive the linked requirement, remove the "tests" link, or globally disable "Generate features by requirements".
Attachments
Issue Links
- duplicates
-
XRAYCLOUD-9728 User is not able to export cucumber tests
-
- Resolved
-