Diogo Monteiro created CLOUDSTACK-8194:
------------------------------------------

             Summary: Firewall egress rules not being displayed if listAll flag 
is not set to true
                 Key: CLOUDSTACK-8194
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8194
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
            Reporter: Diogo Monteiro


When the listAll flag is set to false the listEgressFirewallRules command does 
not return network egress rules in its response.

I was able to reproduce the issue both consuming the end-point through the REST 
API and also through the web UI

When consuming through the REST API  I was authenticating as an User
When consuming through the web UI I was logged in as ROOT

Steps to reproduce

#1 Make a request to the listEgressFirewallRules command with the listAll flag 
set to true
Request:
http://cs42.dev.cloud:8080/client/api?command=listEgressFirewallRules&response=json&sessionkey=T55yxi5%2BC4SsZ8jEUaAHEpqsAOo%3D&listAll=true&networkid=925e1734-adfa-4e8c-a089-92f3cb5f9aa0&_=1422913740386
Response
{ "listegressfirewallrulesresponse" : { "count":2 ,"firewallrule" : [  
{"id":"da97d7f2-3c90-4686-8b24-aaccfc5794b4","protocol":"tcp","startport":"89","endport":"89","networkid":"925e1734-adfa-4e8c-a089-92f3cb5f9aa0","state":"Active","cidrlist":"0.0.0.0/0","tags":[]},
 
{"id":"a6c1f424-7d00-4fc1-95b0-770d7ae919a3","protocol":"tcp","startport":"88","endport":"88","networkid":"925e1734-adfa-4e8c-a089-92f3cb5f9aa0","state":"Active","cidrlist":"0.0.0.0/0","tags":[]}
 ] } }

#2 Make a request to the listEgressFirewallRules command with the listAll flag 
set to false
Request:
cs42.dev.cloud:8080/client/api?command=listEgressFirewallRules&response=json&sessionkey=T55yxi5%2BC4SsZ8jEUaAHEpqsAOo%3D&networkid=925e1734-adfa-4e8c-a089-92f3cb5f9aa0&_=1422913740386

Response:
{ "listegressfirewallrulesresponse" : { } }

Expected results:
Independently of the value of the listAll flag all rules egress rule belonging 
to the given network should be returned in the response



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to