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

The automatic realtime save is not performed all times with the last user that made a modification

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Major
    • None
    • 15.10.10, 16.4.0
    • Realtime
    • None
    • Windows 11 Pro, Edge 125, using an instance of XWiki 15.10.10 on MySQL 8, Tomcat and XWiki 16.4.0 on PostgreSQL 16, Tomcat 9.0.89
    • Unknown

    Description

      Steps to reproduce

      Initially this issue was reproduced while testing in real time with Gabi, but I also managed to reproduce it locally with 2 users in different tabs (one using Incognito mode), though, not that easy.

      1. Enable Realtime WYSIWYG from Administration
      2. Login with an user (e.g. U1)
      3. Edit a page (I reproduced by editing in-place, if relevant)
      4. Using another (incognito) window/tab, login with another user (e.g. U2)
      5. Edit the same page by forcing the lock
      6. Create a line of text to be only edited by U1 and one line just for U2
      7. With U1, add some text in its line
      8. After that, with U2, add some text it its line as well in order to be the last user who makes a modification
      9. Wait for the automatic save to occur

      Expected results

      The automatic save is performed by U2, the last user who made a modification.

      Actual results

      The automatic save is performed by U1, the user who started editing the page.

      The issue is not quite easy to reproduce, as it required a few tries (edits) to be able to reproduce it.

      Please see attached the screenshot, including the diff.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: