Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-35516

AttachmentResource.update incorrectly requires version+1

    XMLWordPrintable

Details

    Description

      PUT to rest/api/content/<id>/child/attachment/<attachmentid> only updates attachment metadata - it doesn't change the attachment content nor create a new version, which is correct.

      However it requires that the version in the post is <currentversion+1> (it rejects <currentversion> with a 409 Conflict error), which is incorrect, since the metadata on <currentversion> is updated, and no <currentversion+1> is created.

      Attachments

        Issue Links

          Activity

            People

              pserbin Platon (Inactive)
              nclarke@atlassian.com Nick Clarke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: