ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [16/18] incubator-ignite git commit: # sprint-2 Fixed Visor task prefix.
Date Wed, 18 Feb 2015 03:26:33 GMT
# sprint-2 Fixed Visor task prefix.


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

Branch: refs/heads/ignite-275
Commit: c7dad84fb3b8ee6d2199e23644f2335837781b70
Parents: 3021ef8
Author: anovikov <anovikov@gridgain.com>
Authored: Wed Feb 18 10:02:56 2015 +0700
Committer: anovikov <anovikov@gridgain.com>
Committed: Wed Feb 18 10:02:56 2015 +0700

----------------------------------------------------------------------
 .../internal/processors/security/GridSecurityContext.java   | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c7dad84f/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityContext.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityContext.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityContext.java
index e112c62..b8057c6 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityContext.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityContext.java
@@ -30,8 +30,11 @@ public class GridSecurityContext implements Externalizable {
     /** */
     private static final long serialVersionUID = 0L;
 
-    /** Visor tasks prefix. */
-    private static final String VISOR_TASK_PREFIX = "org.apache.ignite.internal.visor.";
+    /** Visor ignite tasks prefix. */
+    private static final String VISOR_IGNITE_TASK_PREFIX = "org.apache.ignite.internal.visor.";
+
+    /** Visor gridgain tasks prefix. */
+    private static final String VISOR_GRIDGAIN_TASK_PREFIX = "org.gridgain.grid.internal.visor.";
 
     /** Cache query task name. */
     public static final String VISOR_CACHE_QUERY_TASK_NAME =
@@ -168,7 +171,7 @@ public class GridSecurityContext implements Externalizable {
      * @return {@code True} if task is Visor task.
      */
     private boolean visorTask(String taskCls) {
-        return taskCls.startsWith(VISOR_TASK_PREFIX);
+        return taskCls.startsWith(VISOR_IGNITE_TASK_PREFIX) || taskCls.startsWith(VISOR_GRIDGAIN_TASK_PREFIX);
     }
 
     /**


Mime
View raw message