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

An attachment which is saved twice in the same transaction becomes corrupted if saved in FS attachment store.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2-rc-1
    • Fix Version/s: 4.3-milestone-1
    • Component/s: Storage
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      n/a
    • Documentation in Release Notes:
      n/a
    • Similar issues:

      Description

      FS attachment store uses a 2 stage transaction scheme which is intended to properly handle all possible error conditions. What was forgotten was the possibility that an attachment would be saved twice in the same transaction, this causes a conflict between temporary files which the machine attempts to rename and delete twice.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                calebjamesdelisle CalebJamesDeLisle
                Reporter:
                calebjamesdelisle CalebJamesDeLisle
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: