-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Page - Attachments (Image, Video, etc.)
-
None
-
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
- Create source page A
- Upload image.jpg to A
- Copy A to create destination page B using Copy Page API with copyAttachments=true
- Confirm image.jpg on B is at version v1
- Do not modify image.jpg on A
- Copy A again using:
- destination.type = "existing_page"
- destination.value = B_ID
- copyAttachments = true
- 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