Details
-
Bug
-
Resolution: Fixed
-
Critical
-
12.5-rc-1, 13.0
Description
As you can clearly see from the image below, with attachment versioning enabled on filesystem attachments storage, we end up with 2 files instead of 1, for the latest version of the attachment:
- f.png <-- latest uploaded file contents (takes up 500 K)
- fv1.3.png <-- latest versioned content of the uploaded file (takes up 500 K again)
This does not really bring any value and, with large files even in low numbers, we can end up wasting considerable amounts of storage on the server running the XWiki instance.
Instead of storing the attachment twice, we should always fetch the latest version (i.e. remove the need for f.png in the example above) and return fv1.3.png for both requests of the latest version and of the explicit 1.3 version.
Attachments
Issue Links
- is duplicated by
-
XWIKI-20084 Attachment stored twice
- Closed
- relates to
-
XWIKI-22161 Upload of attachment stuck at 100% for some time without any indication of progress
- Open