Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-7954

ListTags API is ignoring the resourceID and displaying all the tags of all resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.5.0
    • API
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

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

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

      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"} ] } }
      

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

      On Clicking on the Second VM:

      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"} ] } }
      
      

      Attachments

        Activity

          People

            minchen07 Min Chen
            minchen07 Min Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: