Project

General

Profile

Actions

Feature #10569

open

Save user data on invalid form authenticity token

Added by Emanuel Rietveld over 12 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

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

Related to Redmine - Patch #15234: A popup message after session timeoutNew

Actions
Is duplicate of Redmine - Defect #7651: 'Invalid form authenticity token' when updating issue causes datalossNew2011-02-18

Actions
Actions #1

Updated by Karel Pičman about 11 years ago

I've tried to solve the session timeout problem here #15234.

Actions #2

Updated by Toshi MARUYAMA almost 11 years ago

  • Category changed from UI to Accounts / authentication
Actions #3

Updated by Toshi MARUYAMA almost 11 years ago

  • Related to Patch #15234: A popup message after session timeout added
Actions #4

Updated by Andrew Leech over 9 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.

Actions #5

Updated by Martin von Wittich about 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.

Actions #6

Updated by Martin von Wittich about 2 years ago

See also these tickets, I unfortunately am not allowed to link them:

#30733
#17588
#7651

Actions #7

Updated by Bernhard Rohloff about 2 years ago

  • Has duplicate Defect #7651: 'Invalid form authenticity token' when updating issue causes dataloss added
Actions #8

Updated by Bernhard Rohloff about 2 years ago

  • Has duplicate deleted (Defect #7651: 'Invalid form authenticity token' when updating issue causes dataloss)
Actions #9

Updated by Bernhard Rohloff about 2 years ago

  • Is duplicate of Defect #7651: 'Invalid form authenticity token' when updating issue causes dataloss added
Actions

Also available in: Atom PDF