Details
-
Bug
-
Resolution: Fixed
-
High
-
8.1.0, 8.2.0, 8.1.1, 8.1.3, 8.2.1, 8.1.4
-
Severity 2 - Major
-
Description
Issue Summary
This is reproducible on Data Center: yes
Steps to Reproduce
- Upload an attachment via Confluence
- Determine the v4 S3 path of the attachment in the configured S3 bucket using the script defined here
- Create a new folder in the this path thats retains the original attachment ID as its prefix but includes an additional digit as its suffix.
- For example, the v4 path in S3 for the original attachment (ID 950279) would be confluence/attachments/v4/21/128/950279. In this case create another folder in the same path called 9502791 i.e. confluence/attachments/v4/21/128/9502791 See screenshot for detail
- For example, the v4 path in S3 for the original attachment (ID 950279) would be confluence/attachments/v4/21/128/950279. In this case create another folder in the same path called 9502791 i.e. confluence/attachments/v4/21/128/9502791 See screenshot for detail
- Upload a new attachment into the new S3 path i.e. confluence/attachments/v4/21/128/9502791/random_attachment.jpg
- Now, from Confluence, perform a full purge of the original attachment (ID 950279) by selecting Delete > Space Tools > Content Tools > Trash > Purge (the deleted attachment)
- Doing this not only results in 950279 being purged including its versions but it also results in confluence/attachments/v4/21/128/9502791/random_attachment.jpg being deleted
Expected Results
Purging a particular attachment should not impact any other attachments and their versions.
Actual Results
An attachment that is stored in the same path as another attachment, and that shares the same attachment ID as its prefix will have its versions deleted when that other attachment is purged, where:
- purging the attachment: confluence/attachments/v4/21/128/950279
- will also delete this attachments version(s) confluence/attachments/v4/21/128/9502791/random_attachment.jpg
Workaround
Currently not known.