Min Chen created CLOUDSTACK-8093:
------------------------------------

             Summary: Not able to list shared templates by passing id.
                 Key: CLOUDSTACK-8093
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8093
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: IAM
    Affects Versions: 4.4.0
            Reporter: Min Chen
            Assignee: Min Chen
            Priority: Critical
             Fix For: 4.5.0




Steps to reproduce the problem:

Create user test and testa under ROOT domain.

Register a private template T1 as user "test".
Update Template permission to ass user "testa" for this template - T1.

As testa , list the details of this template by passing its Id:
This action is not permitted:

http://<localhost>:8080/client/api?command=listTemplates&response=json&sessionkey=qVqJ8mbFV8EsjE9vKoCydIaP0BM%3D&templatefilter=self&id=cb0dd33f-3a0d-49fb-bf1f-0b6c15ad1455&_=1418851061799

{ "listtemplatesresponse" :
{"uuidList":[],"errorcode":531,"cserrorcode":4365,"errortext":"Acct[bdee8701-0495-4140-8823-25d56723082d-test-b]
 does not have permission to operate with resource 
Acct[cc0f203d-4018-470e-85f8-44105a7d182e-test-a]"}

}




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

Reply via email to