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

It's possible to loose the history of an attachment when the document metadata dirty flag is false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 3.0 M2
    • Storage - File System
    • None
    • Unknown

    Description

      When the document dirty flag is false, the filesystem attachment store assume the attachment contains the archive. Problem is that the archive is supposed to be lazy loaded, so AttachmentSaveTransactionRunnable should use the right getAttachmentArchive(XWikiContext) API instead of getAttachment_archive() to know if the attachment has an archive.

      The workaround is to load the attachment archive before saving the document.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: