ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [31/35] incubator-ignite git commit: #ignite-gg-9809: Mock session tokens.
Date Tue, 24 Feb 2015 06:59:34 GMT
#ignite-gg-9809: Mock session tokens.


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

Branch: refs/heads/sprint-2
Commit: 4565dfdc86866ee6fe7256595b4a089d02c167ed
Parents: 763818e
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Thu Feb 19 15:44:58 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Thu Feb 19 15:44:58 2015 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/processors/rest/GridRestProcessor.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/4565dfdc/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 3d0f073..75dd006 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
@@ -461,7 +461,7 @@ public class GridRestProcessor extends GridProcessorAdapter {
      */
     private SecurityContext authenticate(GridRestRequest req) throws IgniteCheckedException
{
         UUID clientId = req.clientId();
-        SecurityContext secCtx = sesMap.get(clientId);
+        SecurityContext secCtx = clientId == null ? null : sesMap.get(clientId);
 
         if (secCtx != null)
             return secCtx;


Mime
View raw message