Project

General

Profile

Bug #16164

We cannot get the rules categories with the API

Added by Nicolas CHARLES 7 months ago. Updated 6 months ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
User visibility:
Effort required:
Very Small
Priority:
0

Description

# curl -k  "https://localhost/rudder/api/latest/rules/tree?prettify=true" -H "X-API-Token: $(cat /var/rudder/run/api-token)" 
{
  "action": "ruleDetails",
  "id": "tree",
  "result": "error",
  "errorDetails": "Could not get Rule tree details cause is: Could not find Rule tree." 

it is looking for rules with id tree ...


Related issues

Related to Rudder - Bug #12712: API generate error 500 when try update a ruleCategoryRejectedActions
#1

Updated by Nicolas CHARLES 7 months ago

  • Related to Bug #12712: API generate error 500 when try update a ruleCategory added
#2

Updated by Nicolas CHARLES 7 months ago

trying to get a Category that is not just below rootCategorie fails also

# curl -k  "https://localhost/rudder/api/latest/rules/categories/ce4c7039-918e-4d06-9c9a-d9dfedee83fa?prettify=true" -H "X-API-Token: $(cat /var/rudder/run/api-token)" 
{
  "action": "getRuleCategoryDetails",
  "result": "error",
  "errorDetails": "Could not fetch Rule category '3ce4c7039-918e-4d06-9c9a-d9dfedee83fa' details <- could not find category '3ce4c7039-918e-4d06-9c9a-d9dfedee83fa' in category 'rootRuleCategory' <- cannot find parent category of ID '3ce4c7039-918e-4d06-9c9a-d9dfedee83fa'" 

#3

Updated by Nicolas CHARLES 7 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
#5

Updated by Nicolas CHARLES 7 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/2587
#6

Updated by Nicolas CHARLES 7 months ago

  • Status changed from Pending technical review to Pending release
#9

Updated by Vincent MEMBRÉ 6 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.15 which was released today.

Also available in: Atom PDF