Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-6917

Deleted attachments duplication in recycle bin while File Storage is on

    Details

    • keywords:
      recycle bin, attachment, file storage system, FS
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Attachment versioning turned off (xwiki.store.attachment.versioning.hint = void)
      Storage is set to file system,
      Recycle Bin is ON.

      To verify attachment versioning is off. The same file attachment several times gives one copy in storage as expected. No problem.

      If user deletes an attachment.
      Expected behaviour: just to MOVE attachment to recycle bin via file system opertaion. Usually takes milliseconds to complete.

      Real behaviour:
      ~GLOBAL_DELETED_ATTACHMENT_ID_MAPPINGS.xml appeared in /store folder.
      XML inside shows were to find files. Files are on their places as described.

      BUT

      Recycle bin gives terrible surprise: it stores TWO COPIES of deleted file:
      first is: <filename>.<extension>
      second is: <filename>~v1.1.<extension>

      Please note, that attachment VERSIONING is turned OFF.

      For big attachments (1GB and more) such a behaviour is a disaster for two reasons:

      • unreasonable disk space consumption
      • huge delay while user deleting attachment (move+copy)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sdumitriu Sergiu Dumitriu
                Reporter:
                haru Dmitry Bakbardin
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: