Project

General

Profile

Actions

Bug #20281

closed

Query seems to be ignored for pendings nodes

Added by Elaad FURREEDAN 6 months ago. Updated 5 months ago.

Status:
Released
Priority:
N/A
Category:
Relay server or API
Target version:
Severity:
User visibility:
Effort required:
Priority:
0
Tags:

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 #1

Updated by Elaad FURREEDAN 6 months ago

  • Assignee set to Elaad FURREEDAN
Actions #2

Updated by Elaad FURREEDAN 6 months ago

  • Status changed from New to In progress
Actions #6

Updated by Nicolas CHARLES 6 months ago

  • Assignee changed from Elaad FURREEDAN to Nicolas CHARLES
Actions #7

Updated by Nicolas CHARLES 6 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/4003
Actions #8

Updated by Nicolas CHARLES 6 months ago

  • Assignee changed from François ARMAND to Elaad FURREEDAN
Actions #9

Updated by Elaad FURREEDAN 6 months ago

  • Tags set to Sponsored
Actions #10

Updated by Anonymous 5 months ago

  • Status changed from Pending technical review to Pending release
Actions #11

Updated by François ARMAND 5 months ago

  • Description updated (diff)
Actions #13

Updated by Vincent MEMBRÉ 5 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.2.12 and 7.0.0~rc2 which were released today.

Actions

Also available in: Atom PDF