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.