ISSUE TYPE
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"
},
ISSUE TYPE
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
ACTUAL RESULTS