ExportXMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • 7.0.30rc1, 7.4.14rc1
    • Affects Version/s: 7.0.26, 7.4.10, 8.0.0beta1
    • Component/s: API (A)
    • S26-W22/23, S26-W34/35
    • 1

      host.get method fails with an error when filtering by assigned_proxyid using either a numeric or a string value and the value passed is not enclosed in an array.

      Request example:

      {
        "jsonrpc": "2.0",
        "method": "host.get",
        "params": {
          "output": ["host"],
          "filter": {
            "assigned_proxyid": 1
          }
        },
        "id": 1
      }
      

      Response example:

      {
        "jsonrpc": "2.0",
        "error": {
          "code": -32603,
          "message": "Internal error.",
          "data": "dbConditionId(): Argument #2 ($values) must be of type array, int given, called in /home/user/zabbix/feature/DEV-4925-7.0/ui/include/classes/api/services/CHost.php on line 602"
        },
        "id": 1
      }

      Expected behavior: 
      Filtering goes as usual.

            Assignee:
            Gregory Chalenko
            Reporter:
            Deniels Pankins
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: