Copy of same attachment file from source to destination create new versions everytime

XMLWordPrintable

    • 5

      Issue Summary

      Confluence v1 Copy Page API {{POST /rest/api/content/{id}/copy }}when used with

      • destination.type = "existing_page"
      • copyAttachments = true

      It creates a new version of every attachment on the destination page, even when the source attachment has not changed and is expected to be identical.

      Steps to Reproduce

      1. Create source page A
      2. Upload image.jpg to A
      3. Copy A to create destination page B using Copy Page API with copyAttachments=true
      4. Confirm image.jpg on B is at version v1
      5. Do not modify image.jpg on A
      6. Copy A again using:
      7. destination.type = "existing_page"
      8. destination.value = B_ID
      9. copyAttachments = true
      10. Check image.jpg on B

      it becomes v2 even though the source file was unchanged.

      Expected Results

      If the attachment already present on the destination matches the source attachment (same filename, same content), either skip it or keep the existing version. Only produce a new version when the original page also produced a new version.

      Actual Results

      Every copy creates a new version of attachments

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Assignee:
              Unassigned
              Reporter:
              Ramachandran N
              Votes:
              8 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: