Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
18.10.0
-
None
-
Unknown
-
Description
When upgrading an extension, a page customized by a user can't always be merged with the new version of the extension, and the user is asked which version to keep. The page is saved only once the user answered. If the page is saved by someone else in the meantime, the upgrade overwrites that save: the answer applies to the version of the page the merge was computed from, but it's saved on top of the newer version, whose changes are lost.
STEPS TO REPRODUCE:
- Install version 1.0 of an extension that contains a page P.
- Modify P so that the upgrade to 2.0 can't be merged automatically (or set the answer to "Ask" for successful merges in the upgrade options), e.g. change a line that 2.0 changes too.
- Start the upgrade to 2.0 and wait for the merge conflict question about P.
- In another tab, edit P in a part that the upgrade doesn't change (e.g. add a line at the end, or add an object) and save it.
- Answer the question (e.g. keep the merged version, or the new version) and finish the upgrade.
EXPECTED RESULTS:
P contains the change of step 4: the version chosen in step 5 is merged with it, and the question is asked again if this merge conflicts.
ACTUAL RESULTS:
The change of step 4 is lost.
The same happens when P was deleted before the upgrade and is created again while the question waits: the created page is overwritten.
Found while working on XWIKI-22643.
Attachments
Issue Links
- relates to
-
XWIKI-22643 Documents can be saved at the same time, leading to lost writes
-
- Open
-