Actions
Bug #20281
closedQuery seems to be ignored for pendings nodes
Status:
Released
Priority:
N/A
Assignee:
Category:
Relay server or API
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
Description
When we try to querying the list of pending nodes through API, the query seems to be ignored
Example:
curl -k -H "X-API-Token: 6swMZ3Lz2C8P1IDrcU7VrqVn3rezgKF1" -H "Content-Type: application/json" -X GET 'https://192.168.3.2/rudder/api/latest/nodes/pending?where=\[\{"objectType":"node","attribute":"OS","comparator":"eq","value":"Linux"\},\{"objectType":"node","attribute":"nodeHostname","comparator":"regex","value":"node2.*"\}\]'
This always return the full list of nodes, not the list matching the where
clause.
Actions