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.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 6.1-rc-1
    • Old Core
    • None
    • Unknown

    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

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

              Dates

                Created:
                Updated:
                Resolved: