Feature #10569
openSave user data on invalid form authenticity token
0%
Description
Sometimes, when a user leaves a tab open with an issue, and meanwhile somehow gets signed out, the user may try to update the ticket without realizing she is not logged in. In this case, she may spend a long time typing an update to the ticket, which then gets lost when she submits it. Instead of printing only 'invalid form authenticity token' redmine may write something like
-----
Invalid form authenticity token. This can happen if your session has timed out. Please try to log in again. Here is the text you submitted, so you can save it:
blablablabla
-----
That way, the user can copy her work to a text editor, before logging in again and submitting the update again. This would be a usability improvement.
Related issues
Updated by Karel Pičman about 11 years ago
I've tried to solve the session timeout problem here #15234.
Updated by Toshi MARUYAMA about 11 years ago
- Category changed from UI to Accounts / authentication
Updated by Toshi MARUYAMA about 11 years ago
- Related to Patch #15234: A popup message after session timeout added
Updated by Andrew Leech almost 10 years ago
This same issue had hit me a number of times. I've found however that hitting back on the browser (chrome for me) does work for me, my text is just hidden.
After typing and entry that is an update to an existing issue, then hitting submit and finding the login page popup, I hit back on browser once and get back the page I was editing.
The text is initially gone, but if I hit the update button the edit box comes back with the text still in it. I can copy it then, re-login, and paste text back again.
Updated by Martin von Wittich over 2 years ago
This happens what feels like once per month to me, when I'm taking a long time to create a new issue, and is super annoying. The fact that the Back button of the browser simply returns to an empty form makes this especially egregious. The only way to recover the issue text is to open the network inspector and manually copypaste it from the POST data.
Updated by Martin von Wittich about 2 years ago
Updated by Bernhard Rohloff about 2 years ago
- Has duplicate Defect #7651: 'Invalid form authenticity token' when updating issue causes dataloss added
Updated by Bernhard Rohloff about 2 years ago
- Has duplicate deleted (Defect #7651: 'Invalid form authenticity token' when updating issue causes dataloss)
Updated by Bernhard Rohloff about 2 years ago
- Is duplicate of Defect #7651: 'Invalid form authenticity token' when updating issue causes dataloss added