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

When a document is deleted, even with filesystem attachments enabled, the content of the attachments is stored in the database.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 6.1-rc-1
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      This problem has existed since the very beginning and was accidentally discovered when debugging XWIKI-10610. When an attachment is deleted, AttachmentRecycleBinStore.saveToRecycleBin() is called, which if FSAttach is enabled, means the deleted attachment is stored elsewhere in the filesystem. However, if the document is deleted outright, saveToRecycleBin() is never called, instead the document is "exported" to XML with the attachment content included and then stored in the DeletedDocument database table, defeating the purpose of filesystem attachments.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                calebjamesdelisle CalebJamesDeLisle
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

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