cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Chen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-7954) ListTags API is ignoring the resourceID and displaying all the tags of all resources
Date Thu, 20 Nov 2014 17:29:34 GMT
Min Chen created CLOUDSTACK-7954:
------------------------------------

             Summary: ListTags API is ignoring the resourceID and displaying all the tags
of all resources
                 Key: CLOUDSTACK-7954
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7954
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: API
    Affects Versions: 4.2.0
            Reporter: Min Chen
             Fix For: 4.5.0


================
Steps to reproduce:
================

Deployed First VM
Created three resource tags on the First VM
On Clicking on the first VM:

{code}
http://localhost:8080/client/api?command=listTags&response=json&sessionkey=lja4Hf9zlnMFiMwNl6L8g1TFpok%3D&resourceId=e22ae536-4711-4570-b4fa-834179e6bc1b&resourceType=UserVm&listAll=true&_=1416009164305

{ "listtagsresponse" : { "count":3 ,"tag" : [  {"key":"description","value":"puppetdb","resourcetype":"UserVm","resourceid":"e22ae536-4711-4570-b4fa-834179e6bc1b","account":"atoms","domainid":"96ce6f7e-142b-11e4-a917-06e27a00073f","domain":"ROOT"},
{"key":"group","value":"ops","resourcetype":"UserVm","resourceid":"e22ae536-4711-4570-b4fa-834179e6bc1b","account":"atoms","domainid":"96ce6f7e-142b-11e4-a917-06e27a00073f","domain":"ROOT"},
{"key":"owner","value":"klaemm","resourcetype":"UserVm","resourceid":"e22ae536-4711-4570-b4fa-834179e6bc1b","account":"atoms","domainid":"96ce6f7e-142b-11e4-a917-06e27a00073f","domain":"ROOT"}
] } }
{code}

Deployed Second VM
Created two more resource tags on the newly deployed VM

On Clicking on the Second VM:

{code}
http://localhost:8080/client/api?command=listTags&response=json&sessionkey=lja4Hf9zlnMFiMwNl6L8g1TFpok%3D&resourceId=3cd7d704-580d-4f5b-8155-684da7237502&resourceType=UserVm&listAll=true&_=1416009422177

{ "listtagsresponse" : { "count":5 ,"tag" : [  {"key":"description","value":"puppetdb","resourcetype":"UserVm","resourceid":"e22ae536-4711-4570-b4fa-834179e6bc1b","account":"atoms","domainid":"96ce6f7e-142b-11e4-a917-06e27a00073f","domain":"ROOT"},
{"key":"group","value":"ops","resourcetype":"UserVm","resourceid":"e22ae536-4711-4570-b4fa-834179e6bc1b","account":"atoms","domainid":"96ce6f7e-142b-11e4-a917-06e27a00073f","domain":"ROOT"},
{"key":"owner","value":"klaemm","resourcetype":"UserVm","resourceid":"e22ae536-4711-4570-b4fa-834179e6bc1b","account":"atoms","domainid":"96ce6f7e-142b-11e4-a917-06e27a00073f","domain":"ROOT"},
{"key":"parrot","value":"bird","resourcetype":"UserVm","resourceid":"3cd7d704-580d-4f5b-8155-684da7237502","account":"atoms","domainid":"96ce6f7e-142b-11e4-a917-06e27a00073f","domain":"ROOT"},
{"key":"elephant","value":"animal","resourcetype":"UserVm","resourceid":"3cd7d704-580d-4f5b-8155-684da7237502","account":"atoms","domainid":"96ce6f7e-142b-11e4-a917-06e27a00073f","domain":"ROOT"}
] } }

{code}



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

Mime
View raw message