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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 10.11.5, 11.3-rc-1
    • 10.11.3
    • Old Core
    • None
    • Windows/Tomcat/MSSQL
    • Integration
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: