Sangeetha Hariharan created CLOUDSTACK-6939: -----------------------------------------------
Summary: IAM - DomainAdmin - Not able to listNetwork belonging to a subdomain by passing uuid. Key: CLOUDSTACK-6939 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6939 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Management Server Affects Versions: 4.4.0 Environment: Build from 4.4-forward Reporter: Sangeetha Hariharan IAM - DomainAdmin - Not able to listNetwork belonging to a subdomain by passing uuid. Steps to reproduce the problem: Create a domain D1 with domain admin user - d1 Create a subdomain D1/D11 with regular user - d11a. As d11a user , create an isolated network. As domain admin d1 , use listNetworks() command to list network of d11a by passing id paramater. listNetwork() returns empty list. When i pass listall=true parameter along with uuid parameter , then I am able to get the list. When empty result is returned: 2014-05-02 14:40:54,273 INFO [a.c.c.a.ApiServer] (catalina-exec-19:ctx-7b012c50 ctx-d447137f) (userId=14 acc ountId=14 sessionId=0662CF854C84368E87A0D1E1283323A4) 10.215.2.8 – GET command=listNetworks&id=323c350f-8345 -493e-bc50-5b9592fe4ab3&response=json&sessionkey=B2T%2FRltf8yQnVVqLXpbocOU4HyE%3D&_=1399080286519 200 { "list networksresponse" : { } } with listall=true parameter , network is being listed: 2014-05-02 14:41:08,454 INFO [a.c.c.a.ApiServer] (catalina-exec-8:ctx-4cccd2f8 ctx-c091216f) (userId=14 acco untId=14 sessionId=0662CF854C84368E87A0D1E1283323A4) 10.215.2.8 – GET command=listNetworks&id=323c350f-8345- 493e-bc50-5b9592fe4ab3&response=json&sessionkey=B2T%2FRltf8yQnVVqLXpbocOU4HyE%3D&_=1399080286519&listall=true 200 { "listnetworksresponse" : { "count":1 ,"network" : [ {"id":"323c350f-8345-493e-bc50-5b9592fe4ab3","nam e":"testD11-TestNetworkList-OPXQKG-network","displaytext":"testD11-TestNetworkList-OPXQKG-network","broadcast domaintype":"Vlan","traffictype":"Guest","gateway":"10.1.1.1","netmask":"255.255.255.0","cidr":"10.1.1.0/24", "zoneid":"b690dddf-5755-49ab-8a4d-0aff04fa39f7","zonename":"BLR1","networkofferingid":"fc25eb7b-d884-4cc3-acb b-a321817a3567","networkofferingname":"DefaultIsolatedNetworkOfferingWithSourceNatService","networkofferingdi splaytext":"Offering for Isolated networks with Source Nat service enabled","networkofferingconservemode":tru e,"networkofferingavailability":"Required","issystem":false,"state":"Implemented","related":"323c350f-8345-49 3e-bc50-5b9592fe4ab3","dns1":"4.2.2.2","type":"Isolated","acltype":"Account","account":"testD11-TestNetworkLi st-OPXQKG","domainid":"63282e89-0798-456b-9f1d-a234af5fb046","domain":"D11-BVD36X","service":[ {"name":"PortFo rwarding"} , {"name":"UserData"} ,{"name":"Firewall","capability":[ {"name":"MultipleIps","value":"true","canchoo seservicecapability":false} , {"name":"SupportedEgressProtocols","value":"tcp,udp,icmp, all","canchooseservicec apability":false} , {"name":"SupportedProtocols","value":"tcp,udp,icmp","canchooseservicecapability":false} , {"name":"SupportedTrafficDirection","value":"ingress, egress","canchooseservicecapability":false} , {"name":"TrafficStatistics","value":"per public ip","canchooseservicecapability":false} ]},{"name":"Lb","capability":[{"name":"AutoScaleCounters","value":"[ {\"methodname\":\"cpu\",\"paramlist\":[]} , {\"methodname\":\"memory\",\"paramlist\":[]} ]","canchooseservicecapability":false}, {"name":"SupportedLBIsolation","value":"dedicated","canchooseservicecapability":false} , {"name":"SupportedLbAlgorithms","value":"roundrobin,leastconn,source","canchooseservicecapability":false} , {"name":"LbSchemes","value":"Public","canchooseservicecapability":false} , {"name":"SupportedProtocols","value":"tcp, udp","canchooseservicecapability":false} ,{"name":"SupportedStickinessMethods","value":"[{\"methodname\":\"LbCookie\",\"paramlist\":[ {\"paramname\":\"cookie-name\",\"required\":false,\"isflag\":false,\"description\":\" \"} , {\"paramname\":\"mode\",\"required\":false,\"isflag\":false,\"description\":\" \"} , {\"paramname\":\"nocache\",\"required\":false,\"isflag\":true,\"description\":\" \"} , {\"paramname\":\"indirect\",\"required\":false,\"isflag\":true,\"description\":\" \"} , {\"paramname\":\"postonly\",\"required\":false,\"isflag\":true,\"description\":\" \"} ,{\"paramname\":\"domain\",\"required\":false,\"isflag\":false, -- This message was sent by Atlassian JIRA (v6.2#6252)