smolnar82 commented on code in PR #1082:
URL: https://github.com/apache/knox/pull/1082#discussion_r2333512735


##########
knox-token-management-ui/token-management/app/token.management.component.ts:
##########
@@ -121,8 +136,12 @@ export class TokenManagementComponent implements OnInit {
     }
 
     fetchKnoxTokens(): void {
-        this.tokenManagementService.getKnoxTokens(this.userName, 
this.canSeeAllTokens)
-            .then(tokens => this.updateTokens(tokens));
+        if (this.tokenHashKeyPresent) {
+            this.tokenManagementService.getKnoxTokens(this.userName, 
this.canSeeAllTokens)
+                .then(tokens => this.updateTokens(tokens));
+        } else {
+            console.debug('knox.token.hash.key is missing, skipping Knox token 
fetch...');

Review Comment:
   Yes, debug :)
   What's you point? :)



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

To unsubscribe, e-mail: dev-unsubscr...@knox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to