Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Xray DC 8.1.1
-
None
-
Jira 10.4 or higher
Description
Description
Error when uploading attachments through rest API
Pre-conditions
Jira should be higher than 10.4 and attachment max size should be higher than 360MB
How to reproduce
- run any of the following endpoints
PUT /rest/raven/1.0/api/testrun/<test_run_id>/step/<step_result_id> POST /rest/raven/1.0/api/testrun/<test_run_id>/step/<step_result_id>/attachment PUT /rest/raven/1.0/api/testrun/<test_run_id> POST /rest/raven/1.0/api/testrun/<test_run_id>/attachment POST /rest/raven/2.0/api/testrun/<test_run_id>/attachment PUT /rest/raven/2.0/api/testrun/<test_run_id> PUT /rest/raven/2.0/api/testrun/<test_run_id>/iteration/<iteration_id> PUT /rest/raven/2.0/api/testrun/<test_run_id>/iteration/<iteration_id>/step/<step_result_id> POST /rest/raven/2.0/api/testrun/<test_run_id>/iteration/<iteration_id>/step/<step_result_id>/attachment PUT /rest/raven/1.0/api/test/<test_issue_key>/step/ POST /rest/raven/1.0/api/test/<test_issue_key>/step/<step_id>
base64attachments.postman_collection.json![]()
Actual result/Attachments
It fails with a message that it does not support negative numbers.
Expected result
It should upload the attachment without any issue.