Project

General

Profile

Actions

Bug #20281

closed

Query seems to be ignored for pendings nodes

Added by Elaad FURREEDAN about 3 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Relay server or API
Target version:
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

Also available in: Atom PDF