[REST API] HTTP 500 response for consecutive calls to "Update attachment data"

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 4

      Summary

      A failure will occur when trying to update attachment data to Confluence Cloud via REST API.

      The REST call fails if two consecutive POST requests are made to:
      /rest/api/content/{contentID}/child/attachment/{attachmentID}/data

      Steps to Reproduce

      1. Upload two large files (500MB files) to Confluence (file1.bin and file2.bin)
      2. Simultaneously call /rest/api/content/{contentID}/child/attachment/{attachmentID}/data to update files file1.bin and file2.bin.

      Expected Results

      Both attachments are successfully updated

      Actual Results

      One of the attachments will fail to update returning a 500 HTTP status code

      Workaround

      Wait for response code 200 HTTP Response code before attempting to update another attachment

            Assignee:
            Emile Givental
            Reporter:
            Paulo F. (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: