ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] ingvard commented on a change in pull request #6990: IGNITE-11992 The visor tasks lost permission.
Date Thu, 24 Oct 2019 07:53:51 GMT
ingvard commented on a change in pull request #6990: IGNITE-11992 The visor tasks lost permission.
URL: https://github.com/apache/ignite/pull/6990#discussion_r338428709
 
 

 ##########
 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:
   Fixed. The context will be printed.

----------------------------------------------------------------
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