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

Rolling back to a page version prior to an attachment version update does not restore the previous version of the attachment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.11.3
    • Fix Version/s: 10.11.5, 11.3-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Environment:
      Windows/Tomcat/MSSQL
    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Rolling back to a page version prior to an attachment version update does not restore the previous version of the attachment.

      Reproduce:
      -Create a page
      -Edit the page and insert attachment
      -Make a few more edits to the page
      -Update the attachment revision (upload a different attachment with same name)
      -Make a few more edits to the page
      -Rollback to a revision between when the attachment was first attached and when it was updated, attachment revision will remain the latest (1.2), instead of also rolling back to the attachment to 1.1

      Misc:
      Confirmed rolling back to a revision prior to the attachment at all, then back to after the attachment restores the attachment but remains latest version.

      Expected Result:
      Rolling back to a previous page version should roll back all attachments to their versions at that time as well, in order to truly roll back the version accurately.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                reighnman Jared O.
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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