Details
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
- relates to
-
XWIKI-16320 Failing to rollback when the attachment indicated in the rollbacked version does not match any existing attachment version
- Open
-
XWIKI-16349 Wrong content of attachment when rolling back a page on Windows
- Open
-
XWIKI-17445 Cannot rollback pre packaged Sandbox home page to version 1.1
- Reopened
-
XWIKI-16316 Attachments versions are incremented by each page version save
- Closed