Project

General

Profile

Actions

Bug #20281

closed

Query seems to be ignored for pendings nodes

Added by Elaad FURREEDAN over 2 years ago. Updated almost 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 #1

Updated by Elaad FURREEDAN over 2 years ago

  • Assignee set to Elaad FURREEDAN
Actions #2

Updated by Elaad FURREEDAN over 2 years ago

  • Status changed from New to In progress
Actions #6

Updated by Nicolas CHARLES over 2 years ago

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

Updated by Nicolas CHARLES over 2 years 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 over 2 years ago

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

Updated by Elaad FURREEDAN over 2 years ago

  • Translation missing: en.field_tag_list set to Sponsored
Actions #10

Updated by Anonymous over 2 years ago

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

Updated by François ARMAND over 2 years ago

  • Description updated (diff)
Actions #12

Updated by François ARMAND over 2 years ago

  • Fix check changed from To do to Checked
Actions #13

Updated by Vincent MEMBRÉ over 2 years 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