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

The in-place editor doesn't behave correctly if the CSRF token is invalidated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • 15.10.9, 16.4.0-rc-1
    • 15.10.5
    • Edit
    • None
    • Unknown

    Description

      Follow these steps to reproduce:

      • edit an existing plain wiki page in-place
      • restart XWiki
      • make some change in the in-place editor
      • save & continue from the in-place editor => you get the modal telling you that the CSRF token is invalid => force the save
      • then cancel => instead of getting the latest version of the document you get the previous version

      Another problem can be seen with these steps:

      • edit an existing plain wiki page in-place
      • restart XWiki
      • make some change in the in-place editor
      • save & view from the in-place editor => you get the modal telling you that the CSRF token is invalid => force the save => instead of going to view mode you remain in edit mode; clicking Cancel shows the previous version, not the latest

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: