Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
11.2
-
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
- is related to
-
XWIKI-16346 Improve warning conflict to show diff and force save or reload editor to latest version
- Closed