ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] dgarus commented on a change in pull request #6990: IGNITE-11992 The visor tasks lost permission.
Date Tue, 22 Oct 2019 08:32:44 GMT
dgarus commented on a change in pull request #6990: IGNITE-11992 The visor tasks lost permission.
URL: https://github.com/apache/ignite/pull/6990#discussion_r337377704
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryUtils.java
 ##########
 @@ -360,8 +363,15 @@ public static void scheduleQueryStart(
         final VisorQueryTaskArg arg,
         final GridQueryCancel cancel
     ) {
+        SecurityContext initCtx = ignite.context().security().securityContext();
+
         ignite.context().closure().runLocalSafe(() -> {
-            try {
+            IgniteLogger log = ignite.log();
+
+            try(OperationSecurityContext ctx = ignite.context().security().withContext(initCtx))
{
+                if (log.isDebugEnabled())
+                    log.debug("Operation started with subject: " + ignite.context().security().securityContext().subject());
 
 Review comment:
   NPE if security is not enabled

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message