ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [32/46] incubator-ignite git commit: #ignite-gg-9809: Remove GridEventType.EVT_SECURE_SESSION_VALIDATION_FAILED from configs.
Date Wed, 25 Feb 2015 00:36:55 GMT
#ignite-gg-9809: Remove GridEventType.EVT_SECURE_SESSION_VALIDATION_FAILED from configs.


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

Branch: refs/heads/ignite-sql-tests
Commit: 75debb4387bdcb39109c3444c44b4d7a6b649c45
Parents: 4565dfd
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Thu Feb 19 15:59:53 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Thu Feb 19 15:59:53 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/rest/GridRestProcessor.java   | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/75debb43/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestProcessor.java
index 75dd006..8c9ef1d 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestProcessor.java
@@ -222,12 +222,14 @@ public class GridRestProcessor extends GridProcessorAdapter {
 
                 assert res != null;
 
-                try {
-                    updateSession(req, subjCtx0);
-                    res.sessionTokenBytes(new byte[0]);
-                }
-                catch (IgniteCheckedException e) {
-                    U.warn(log, "Cannot update response session token: " + e.getMessage());
+                if (ctx.security().enabled()) {
+                    try {
+                        updateSession(req, subjCtx0);
+                        res.sessionTokenBytes(new byte[0]);
+                    }
+                    catch (IgniteCheckedException e) {
+                        U.warn(log, "Cannot update response session token: " + e.getMessage());
+                    }
                 }
 
                 interceptResponse(res, req);


Mime
View raw message