httptest.get shows tags as empty arrays

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: 6.0.2
    • Component/s: Frontend (F)
    • None

      Steps to reproduce:

      1. using api sending the following
        {
        "jsonrpc":"2.0",
        "method":"httptest.get",
        "params":{
        "httptestids":"5314",
        "inherited":false,
        "selectTags":true,
        "selectSteps":true
        },
        "auth":"auth",
        "id":1
        }

         
        I get the following result:

       {
          "jsonrpc": "2.0",
          "result": [
              {
                  "httptestid": "5314",
                  "name": "Login to to /api/v1/authn",
                  "nextcheck": "0",
                  "delay": "60",
                  "status": "0",
                  "agent": "ZabbxiMonitorAgent",
                  "authentication": "0",
                  "http_user": "",
                  "http_password": "",
                  "hostid": "14001",
                  "templateid": "0",
                  "http_proxy": "",
                  "retries": "1",
                  "ssl_cert_file": "",
                  "ssl_key_file": "",
                  "ssl_key_password": "",
                  "verify_peer": "0",
                  "verify_host": "0",
                  "uuid": "95517114df3042ec9f0029b8db2e6131",
                  "headers": [
                      {
                          "name": "Host",
                          "value": " fakehostname.com"
                      },
                      {
                          "name": "Accept",
                          "value": " application/json"
                      },
                      {
                          "name": "Content-Type",
                          "value": " application/json"
                      }
                  ],
                  "variables": [
                      {
                          "name": "{password}",
                          "value": "junkpassword"
                      },
                      {
                          "name": "{username}",
                          "value": "junkusernaem"
                      }
                  ],
                  "steps": "1",
                  "tags": [
                      [],
                      [],
                      []
                  ]
              }
          ],
          "id": 1
      }

      I'm expecting to see the value of the tags like in the UI, but instead I'm seeing just three place holders for where the tags should be. 

            Assignee:
            Igor Gorbach (Inactive)
            Reporter:
            bunkzilla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: