[
https://issues.apache.org/jira/browse/JSPWIKI-851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18140439#comment-18140439
]
ASF subversion and git services commented on JSPWIKI-851:
---------------------------------------------------------
Commit 9376f648f93a8da4cb26bda5a39d0ffb1ebbfe65 in jspwiki's branch
refs/heads/master from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=9376f648f ]
JSPWIKI-851 Do not lose the text of the editor when the session has expired
When the hash of the editor form is missing, SpamFilter.checkHash redirects to
the page
SessionExpired and does not save anything. The submit handler of the editor had
already
removed the draft that it keeps in the local storage, so the typed text was
lost, and the
page SessionExpired did not exist.
The submit handler now only marks the draft as sent in the session storage. The
next page
that is loaded consumes the mark, and removes the draft only when it is the
view of the
saved page. After a refused save the draft stays and the editor offers to
restore it. An
initial page SessionExpired explains what happened.
> Session Expired Behaviour
> -------------------------
>
> Key: JSPWIKI-851
> URL: https://issues.apache.org/jira/browse/JSPWIKI-851
> Project: JSPWiki
> Issue Type: Bug
> Components: Core & storage
> Affects Versions: 2.10.1
> Reporter: Jürgen Weber
> Priority: Major
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)