Project

General

Profile

Actions

Bug #16164

closed

We cannot get the rules categories with the API

Added by Nicolas CHARLES over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Very Small
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

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 1 (0 open1 closed)

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

Updated by Nicolas CHARLES over 4 years ago

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

Updated by Nicolas CHARLES over 4 years 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'" 

Actions #3

Updated by Nicolas CHARLES over 4 years ago

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

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

Updated by Nicolas CHARLES over 4 years ago

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

Updated by Alexis Mousset over 4 years ago

  • Name check changed from To do to Reviewed
Actions #8

Updated by Nicolas CHARLES over 4 years ago

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

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF