Project

General

Profile

Actions

Bug #16164

closed

We cannot get the rules categories with the API

Bug #16164: We cannot get the rules categories with the API

Added by Nicolas CHARLES over 6 years ago. Updated over 6 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

Updated by Nicolas CHARLES over 6 years ago Actions #1

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

Updated by Nicolas CHARLES over 6 years ago Actions #2

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'" 

Updated by Nicolas CHARLES over 6 years ago Actions #3

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

Updated by Nicolas CHARLES over 6 years ago Actions #5

  • 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

Updated by Nicolas CHARLES over 6 years ago Actions #6

  • Status changed from Pending technical review to Pending release

Updated by Alexis Mousset over 6 years ago Actions #7

  • Name check changed from To do to Reviewed

Updated by Nicolas CHARLES over 6 years ago Actions #8

  • Fix check changed from To do to Checked

Updated by Vincent MEMBRÉ over 6 years ago Actions #9

  • 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: PDF Atom