ustcweizhou commented on a change in pull request #3378: project id added in test URL: https://github.com/apache/cloudstack/pull/3378#discussion_r293287184
########## File path: server/src/main/java/com/cloud/api/query/QueryManagerImpl.java ########## @@ -646,7 +646,9 @@ Ternary<Long, Boolean, ListProjectResourcesCriteria> domainIdRecursiveListProject = new Ternary<Long, Boolean, ListProjectResourcesCriteria>(cmd.getDomainId(), cmd.isRecursive(), null); - _accountMgr.buildACLSearchParameters(caller, null, cmd.getAccountName(), cmd.getProjectId(), permittedAccounts, domainIdRecursiveListProject, listAll, false); + Long projectId = cmd.getProjectId() == null ? cmd.getResourceId() : cmd.getProjectId(); Review comment: ``` public String getResourceId() { return resourceId; } ``` ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services