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

Can't save the page anymore after a server restart

    XMLWordPrintable

Details

    • Integration
    • High
    • Unknown
    • N/A
    • N/A

    Description

      As an XWiki application developer I often do this:

      • open a wiki page in edit mode (e.g. edit a JSX object)
      • restart the server to put some modified JAR (e.g. WebJar)
      • continue editing the page I had previously opened and use the Alt+Shit+S shortcut to save the page
      • the save fails with a notification at the bottom of the page (due to invalid CSRF token, which is normal)
      • at this point I use Save & View to save my changes and then open back the page in edit mode

      Starting with 11.2 I get a popup with this message at the last step:

      An authorization error occured when performing this action. Your might have been logged out since you started to edit this page.

      and I can't save the page anymore. I need to reload but this means I can loose my changes. If my changes are not in a single place (e.g. multiple JSX and SSX objects) then copying them is not easy. This is really annoying and a very serious regression IMO.

      Note that we added the $services.csrf.getResubmissionURL() API specifically to be able to force a save when the CSRF token gets invalidated.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: