Updated Branches:
  refs/heads/master b50dcfed1 -> 8206db297

WICKET-5473 Wicket does not handle non in-memory Httpsessions correctly

Mark the session dirty when incrementing the sequences for bound sessions

(cherry picked from commit ed3db1d5516b700471aacdfd1244dec2d52ea4d8)


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/8206db29
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/8206db29
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/8206db29

Branch: refs/heads/master
Commit: 8206db297d1827eef482d9563b2c4f5d4facd432
Parents: b50dcfe
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Thu Jan 30 09:41:40 2014 +0100
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Thu Jan 30 09:42:37 2014 +0100

----------------------------------------------------------------------
 wicket-core/src/main/java/org/apache/wicket/Session.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/8206db29/wicket-core/src/main/java/org/apache/wicket/Session.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/Session.java 
b/wicket-core/src/main/java/org/apache/wicket/Session.java
index 73bd02c..2936d20 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Session.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Session.java
@@ -837,6 +837,10 @@ public abstract class Session implements IClusterable, 
IEventSink
         */
        public synchronized int nextSequenceValue()
        {
+               if (isTemporary() == false)
+               {
+                       dirty();
+               }
                return sequence++;
        }
 
@@ -846,6 +850,10 @@ public abstract class Session implements IClusterable, 
IEventSink
         */
        public synchronized int nextPageId()
        {
+               if (isTemporary() == false)
+               {
+                       dirty();
+               }
                return pageId++;
        }
 

Reply via email to