You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Boris Stoyanov (JIRA)" <ji...@apache.org> on 2017/11/20 14:29:00 UTC
[jira] [Created] (CLOUDSTACK-10149) listTemaplates API: Filtering
by account with different domains does not work as expected
Boris Stoyanov created CLOUDSTACK-10149:
-------------------------------------------
Summary: listTemaplates API: Filtering by account with different domains does not work as expected
Key: CLOUDSTACK-10149
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10149
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: API
Affects Versions: 4.11.0.0
Reporter: Boris Stoyanov
Steps:
1. Create acc1 and acc2 from d1 and d2
2. Register template with acc1
3. with Root Admin, list templates of acc2
4. Observe that acc1 template is presented
Expected: Acc1 template should not be listed when filtering by acc2.
{code}(local) SBCM5> list templates templatefilter=all
{
"count": 4,
"template": [
{
...
},
{
...
},
{
"account": "test-a-TestlistTemplatesDomainAdmin-LMD8FB",
"bits": 0,
"checksum": "bec22db040790c9cdd5ed2ec47ac5972",
"created": "2017-11-20T14:16:25+0000",
"crossZones": false,
"displaytext": "Public Template",
"domain": "domain-1QOXXY",
"domainid": "b88ca62f-ef39-4e1c-be08-0b89d79b564f",
"format": "QCOW2",
"hypervisor": "KVM",
"id": "1056e5d8-3ee9-4348-941e-c9f6fb6ffcc9",
"isdynamicallyscalable": false,
"isextractable": true,
"isfeatured": false,
"ispublic": false,
"isready": true,
"name": "Public template-YAFT27",
"ostypeid": "b67cac09-c86d-11e7-a127-06971a010705",
"ostypename": "CentOS 5.6 (64-bit)",
"passwordenabled": false,
"physicalsize": 1769537536,
"size": 8589934592,
"sshkeyenabled": false,
"status": "Download Complete",
"tags": [],
"templatetype": "USER",
"zoneid": "ad3aff7b-f1cb-414f-a8f7-2da7df8a693b",
"zonename": "trl-1050-k-cs411-bstoyanov"
},
{
...
}
]
}
(local) SBCM5> list templates templatefilter=all account=test-a-TestlistTemplatesDomainAdmin-LMD8FB domainid=b88ca62f-ef39-4e1c-be08-0b89d79b564f
{
"count": 4,
"template": [
{
...
},
{
...
},
{
"account": "test-a-TestlistTemplatesDomainAdmin-LMD8FB",
"bits": 0,
"checksum": "bec22db040790c9cdd5ed2ec47ac5972",
"created": "2017-11-20T14:16:25+0000",
"crossZones": false,
"displaytext": "Public Template",
"domain": "domain-1QOXXY",
"domainid": "b88ca62f-ef39-4e1c-be08-0b89d79b564f",
"format": "QCOW2",
"hypervisor": "KVM",
"id": "1056e5d8-3ee9-4348-941e-c9f6fb6ffcc9",
"isdynamicallyscalable": false,
"isextractable": true,
"isfeatured": false,
"ispublic": false,
"isready": true,
"name": "Public template-YAFT27",
"ostypeid": "b67cac09-c86d-11e7-a127-06971a010705",
"ostypename": "CentOS 5.6 (64-bit)",
"passwordenabled": false,
"physicalsize": 1769537536,
"size": 8589934592,
"sshkeyenabled": false,
"status": "Download Complete",
"tags": [],
"templatetype": "USER",
"zoneid": "ad3aff7b-f1cb-414f-a8f7-2da7df8a693b",
"zonename": "trl-1050-k-cs411-bstoyanov"
},
{
.....
}
]
}{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)