weizhouapache commented on code in PR #13149:
URL: https://github.com/apache/cloudstack/pull/13149#discussion_r3287789004


##########
server/src/main/java/com/cloud/user/AccountManagerImpl.java:
##########
@@ -3320,6 +3320,10 @@ private Boolean isAccessingKeypairSuperset(ApiKeyPair 
accessedKeyPair, BaseCmd c
             return Boolean.TRUE;
         }
         ApiKeyPair accessingKeyPair = apiKeyPairService.findByApiKey(apiKey);
+        if (accessingKeyPair == null) {
+            logger.warn("Unable to find API key pair for the accessing API 
key: {}", apiKey);
+            return Boolean.TRUE;

Review Comment:
   I did not check the whole workflow, I am not sure if it is fine to return 
true here
   it would be better others can review and evaluate the side-effects



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to