IGNITE-2344 WebSessionFilter doesn't support session ID renewal

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

Branch: refs/heads/ignite-3300
Commit: 58d054443d48f2ef48e935bd4e5ce24b5bb352ed
Parents: df1490e
Author: samaitra <saikat.mai...@gmail.com>
Authored: Mon Jul 25 10:54:35 2016 +0300
Committer: Anton Vinogradov <a...@apache.org>
Committed: Mon Jul 25 10:54:35 2016 +0300

----------------------------------------------------------------------
 .../ignite/internal/websession/WebSessionSelfTest.java       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/58d05444/modules/web/src/test/java/org/apache/ignite/internal/websession/WebSessionSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/web/src/test/java/org/apache/ignite/internal/websession/WebSessionSelfTest.java
 
b/modules/web/src/test/java/org/apache/ignite/internal/websession/WebSessionSelfTest.java
index 0ab1130..1a8c328 100644
--- 
a/modules/web/src/test/java/org/apache/ignite/internal/websession/WebSessionSelfTest.java
+++ 
b/modules/web/src/test/java/org/apache/ignite/internal/websession/WebSessionSelfTest.java
@@ -854,7 +854,7 @@ public class WebSessionSelfTest extends 
GridCommonAbstractTest {
         HashLoginService hashLoginService = new HashLoginService();
         hashLoginService.setName("Test Realm");
         createRealm();
-        hashLoginService.setConfig("realm.properties");
+        hashLoginService.setConfig("/tmp/realm.properties");
         ctx.getSecurityHandler().setLoginService(hashLoginService);
 
         srv.setHandler(ctx);
@@ -884,14 +884,14 @@ public class WebSessionSelfTest extends 
GridCommonAbstractTest {
     private void stopServerWithLoginService(@Nullable Server srv) throws 
Exception{
         if (srv != null){
             srv.stop();
-            File realmFile = new File("realm.properties");
+            File realmFile = new File("/tmp/realm.properties");
             realmFile.delete();
         }
     }
 
     /** Creates a realm file to store test user credentials */
     private void createRealm() throws Exception{
-        File realmFile = new File("realm.properties");
+        File realmFile = new File("/tmp/realm.properties");
         FileWriter fileWriter = new FileWriter(realmFile);
         fileWriter.append("admin:admin");
         fileWriter.flush();
@@ -1128,7 +1128,7 @@ public class WebSessionSelfTest extends 
GridCommonAbstractTest {
                 try {
                     req.login("admin", "admin");
                 } catch (Exception e) {
-                    X.printerrln("Login failed.");
+                    X.printerrln("Login failed due to exception.", e);
                 }
 
                 HttpSession session = req.getSession();

Reply via email to