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

Unable to upload attachments through rest API

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Xray DC 8.1.1
    • Xray DC 8.2.2
    • Attachments
    • 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

      1. 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.

      Attachments

        Activity

          People

            dpca Diamantino Campos
            mdrf Marcelo Ferreira
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h