ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject ignite git commit: IGNITE-3158: WebSessions: now genuine session is always propagated.
Date Wed, 18 May 2016 07:45:44 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1.6 17fbf2525 -> d57caf460


IGNITE-3158: WebSessions: now genuine session is always propagated.


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

Branch: refs/heads/ignite-1.6
Commit: d57caf4604422218dd9e4b169dd233d9be677030
Parents: 17fbf25
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Wed May 18 10:45:36 2016 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Wed May 18 10:45:36 2016 +0300

----------------------------------------------------------------------
 .../apache/ignite/cache/websession/WebSessionFilter.java | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/d57caf46/modules/web/src/main/java/org/apache/ignite/cache/websession/WebSessionFilter.java
----------------------------------------------------------------------
diff --git a/modules/web/src/main/java/org/apache/ignite/cache/websession/WebSessionFilter.java
b/modules/web/src/main/java/org/apache/ignite/cache/websession/WebSessionFilter.java
index 785f472..8346870 100644
--- a/modules/web/src/main/java/org/apache/ignite/cache/websession/WebSessionFilter.java
+++ b/modules/web/src/main/java/org/apache/ignite/cache/websession/WebSessionFilter.java
@@ -687,6 +687,13 @@ public class WebSessionFilter implements Filter {
         }
     }
 
+    /**
+     * Creates a new web session with the specified id.
+     *
+     * @param ses Base session.
+     * @param sesId Session id.
+     * @return New session.
+     */
     private WebSessionV2 createSessionV2(final HttpSession ses, final String sesId) throws
IOException {
         if (log.isDebugEnabled())
             log.debug("Session created: " + sesId);
@@ -703,9 +710,9 @@ public class WebSessionFilter implements Filter {
                 final WebSessionEntity old = cache0.getAndPutIfAbsent(sesId, marshaledEntity);
 
                 if (old != null)
-                    cached = new WebSessionV2(sesId, null, false, ctx, old, marshaller);
+                    cached = new WebSessionV2(sesId, ses, false, ctx, old, marshaller);
                 else
-                    cached = new WebSessionV2(sesId, null, false, ctx, marshaledEntity, marshaller);
+                    cached = new WebSessionV2(sesId, ses, false, ctx, marshaledEntity, marshaller);
 
                 break;
             }


Mime
View raw message