Ajit Kumar created AMBARI-15167:
-----------------------------------
Summary: Host API fails with multi-value filter
Key: AMBARI-15167
URL: https://issues.apache.org/jira/browse/AMBARI-15167
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 2.2.1
Reporter: Ajit Kumar
Assignee: Ajit Kumar
Fix For: 2.2.2
hosts filtering by multiple state results in server error but filtering by
single state works fine.
{code}
GET api/v1/clusters/clustername/hosts -d
'{"RequestInfo":{"query":"stack_versions/HostStackVersions/state.in(INSTALLING,INSTALL_FAILED,OUT_OF_SYNC)"}}'
{
"status" : 500,
"message" : "org.apache.ambari.server.controller.spi.SystemException: Stack
version should have numerical id"
}
GET api/v1/clusters/a/hosts -d '
{"RequestInfo":{"query":"stack_versions/HostStackVersions/state.in(INSTALLING)"}}'
Request successful.
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)