You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sangeetha Hariharan (JIRA)" <ji...@apache.org> on 2013/06/27 00:32:19 UTC

[jira] [Closed] (CLOUDSTACK-2352) Anti-Affinity - As admin user , not able to list affinity group created by other users by passins id parameter to listaffinitygroups command. .

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sangeetha Hariharan closed CLOUDSTACK-2352.
-------------------------------------------


Tested with latest build:

Admin is able to list the details of  affinity group that belongs to a regular user.

This information also gets displayed in the UI , when admin tried to view the details of the affinity group associated with a VM that belongs to a regular user.


http://10.223.195.103:8080/client/api?command=listAffinityGroups&response=json&sessionkey=DamJJwSfDWtv9pakJe5XUZochiw%3D&id=b88b81d8-f2e3-453e-b577-f34cbf7a3cbf&_=1372285578363

{ "listaffinitygroupsresponse" : { "count":1 ,"affinitygroup" : [  {"id":"b88b81d8-f2e3-453e-b577-f34cbf7a3cbf","name":"sangee-22","description":"sangee-22","account":"sangee","domainid":"597abf5c-d907-11e2-b5ac-06cba2000705","domain":"ROOT","type":"host anti-affinity","virtualmachineIds":["d1ddea56-965c-4d55-addd-4cccb8c5aeaa"]} ] } }


mysql> select * from affinity_group;
+----+-----------+--------------------+--------------------------------------+-------------+-----------+------------+
| id | name      | type               | uuid                                 | description | domain_id | account_id |
+----+-----------+--------------------+--------------------------------------+-------------+-----------+------------+
|  4 | sangee-22 | host anti-affinity | b88b81d8-f2e3-453e-b577-f34cbf7a3cbf | sangee-22   |         1 |          4 |
|  5 | sangee-13 | host anti-affinity | e855ab7f-75df-4555-b8d6-021815e50d6d | sangee-13   |         1 |          4 |
|  6 | admin-1   | host anti-affinity | 098b2aa6-8178-46d5-83de-4dfd599e2757 | admin-1     |         1 |          2 |
+----+-----------+--------------------+--------------------------------------+-------------+-----------+------------+
3 rows in set (0.00 sec)

Closing this issue.
                
> Anti-Affinity - As admin user , not able to list affinity group created by other users by passins id parameter to listaffinitygroups command. .
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2352
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2352
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>         Environment: Build from master
>            Reporter: Sangeetha Hariharan
>            Assignee: Prachi Damle
>             Fix For: 4.2.0
>
>
> Anti-Affinity - As admin user , not able to list affinity group created by other users by passing id parameter to listaffinitygroups command.
> Steps to reproduce the problem:
> 1.As regular user : create affinity group g1,sg2. Deploy a Vm – vm1 in g1.
> 2.As admin:
> List this Vm. go to "View Affinity Group" , when affinity group is listed , launch the detail view of this Affinity group.
> UI hangs because the API call made from the UI, returns empty list.
> GET command=listAffinityGroups&response=json&sessionkey=aGda%2FUIRf%2BIz0Ayz%2BVtquMVyx5w%3D&id=8ba39582-5004-4e77-a872-a5a4788c1371&_=1367888349988 200 { "listaffinitygroupsresponse" : { } }
> mysql> select * from affinity_group where uuid="8ba39582-5004-4e77-a872-a5a4788c1371";
> +----+------------+--------------------+--------------------------------------+-------------+-----------+------------+
> | id | name       | type               | uuid                                 | description | domain_id | account_id |
> +----+------------+--------------------+--------------------------------------+-------------+-----------+------------+
> | 12 | testsangee | host anti-affinity | 8ba39582-5004-4e77-a872-a5a4788c1371 | testsangee  |         1 |          4 |
> +----+------------+--------------------+--------------------------------------+-------------+-----------+------------+
> 1 row in set (0.00 sec)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira