davidjumani opened a new issue #4868:
URL: https://github.com/apache/cloudstack/issues/4868


   
   ##### ISSUE TYPE
   
    * Bug Report
   
   ##### CLOUDSTACK VERSION
   
   4.14 + (maybe even lower versions)
   
   ##### SUMMARY
   
   isrecursive is not honoured when passed along with listall=true for 
listAccounts as a root admin
   It is also not honoured when allow.user.view.all.domain.accounts is true
   
   
https://github.com/apache/cloudstack/blob/master/server/src/main/java/com/cloud/api/query/QueryManagerImpl.java#L2198-L2205
   
   ##### EXPECTED RESULTS
   ```
   (qa) 🐱 > list accounts filter=name,domain 
domainid=e4874e10-5fdf-11ea-9a56-1e006800018c listall=true isrecursive=false 
   {
     "account": [
       {
         "domain": "ROOT",
         "name": "admin"
       },
       {
         "domain": "ROOT",
         "name": "baremetal-system-account"
       },
       ................
   
   ```
   
   ##### ACTUAL RESULTS
   ```
   (qa) 🐱 > list accounts filter=name,domain 
domainid=e4874e10-5fdf-11ea-9a56-1e006800018c listall=true isrecursive=false 
   {
     "account": [
       {
         "domain": "ROOT",
         "name": "admin"
       },
       {
         "domain": "ROOT",
         "name": "baremetal-system-account"
       },
       {
         "domain": "small",            <- from a sub domain
         "name": "rick"
       },
   ```


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