Skip to content

Commit

Permalink
# sprint-2 Fixed Visor task prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
nva committed Feb 18, 2015
1 parent 3021ef8 commit c7dad84
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -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 =
Expand Down Expand Up @@ -168,7 +171,7 @@ public boolean systemOperationAllowed(GridSecurityPermission perm) {
* @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);
}

/**
Expand Down

0 comments on commit c7dad84

Please sign in to comment.