Lost yet another submitted report due to browser caching

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
emyoulation
Posts: 3
Joined: 05 Aug 2023, 16:49

Lost yet another submitted report due to browser caching

Post by emyoulation »

Is there an update that addresses report submissions being lost after the session timed out (returned an "invalid security token" error page) of the form was missing a required data field entry?

This complaint is probably familiar but I'll detail it again anyway"

On our MantisBT installation, a failure webpage is loaded when a form submission fails to validate. (A required field may not have been completed. Or a session times out and an "invalid security token" failure is reported.) The page suggests correcting the problem with the form data after returning to the form.

Code: Select all

Please use the "Back" button in your web browser to return to the previous page
But the form data is not cached and the 'back' results in a blank form. All that work composing a report is LOST!

I an old (and ugly) workaround for the "invalid security token" but not the 'required field' problem:
> You can disable session validation by adding the following line to file

Code: Select all

config_inc.php
>

Code: Select all

Code: Select all
>

Code: Select all

$g_session_validation = OFF;
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Lost yet another submitted report due to browser caching

Post by atrol »

That's all that can be told about that https://www.mantisbt.org/docs/master/en ... rrors.2800
Please use Search before posting and read the Manual
emyoulation
Posts: 3
Joined: 05 Aug 2023, 16:49

Re: Lost yet another submitted report due to browser caching

Post by emyoulation »

Turning the validation off isn't a viable option.

How about opening another browser with the contents of the questionable form when this error screen appears. The form data has already been submitted to the form processor, so the the screen might have already been updated. And there might be multiple branches to error screen.

It eliminates the "back" button for some browsers never recover form data. And it should be a minor tweak to twin the output rather than a major rework.
Post Reply