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

The attachments are deleting when using the test step REST API even when the Test Step does not belong to the Test

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • R3.2.1
    • R3.3.0
    • None
    • None
    • R3.3.0 S1
    • OK

    Description

      When using the test step REST API to update a Test Step, if you try remove an attachment from other Test, is showing an error message, but the attachment is deleted

      ErrorMessage:

      "Attachment with id 990 not found or does not belong to Step with id 1864." 

      Endpoint: 

      localhost:21000/rest/raven/1.0/api/test/{testKey}/step/{stepID}
      

      Data:

      {  
         "attachments":{  
            "remove":[  
               990
            ]
         }
      }

      Attachments

        Activity

          People

            ipvm Isabel Moreira
            gbml Goncalo Lima
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 2 hours
                3h