Project

General

Profile

Actions

Bug #12712

closed

API generate error 500 when try update a ruleCategory

Added by Jérémy HOCDÉ over 6 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
API
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
0
Name check:
Fix check:
Regression:

Description

when i call https://192.168.1.29/rudder/api/latest/rules/categories/17bd27ad-24db-4b44-8218-ea0ec68714ce on a specific ruleCategory
there is always a error 500 because it is looking for the rootRuleCategory instead

logs:

2018-04-05 22:57:38,706 - rudder-sync - INFO - updateRuleCategory: Kernel 3.x
2018-04-05 22:57:38,715 - rudder-sync - WARNING - apiQuery: eRRoR 500 : POST https://192.168.1.29/rudder/api/latest/rules/categories/17bd27ad-24db-4b44-8218-ea0ec68714ce
2018-04-05 22:57:38,715 - rudder-sync - WARNING - apiQuery: request's answer: {"action":"updateRuleCategory","result":"error","errorDetails":"Could not update Rule category '17bd27ad-24db-4b44-8218-ea0ec68714ce' <- could not find category '17bd27ad-24db-4b44-8218-ea0ec68714ce' in category 'rootRuleCategory'"}
2018-04-05 22:57:38,715 - rudder-sync - WARNING - apiQuery: request's datas: {'parent': 'd552b7df-be18-42f4-be05-c640a33eb168', 'name': 'Kernel 3.x', 'description': ''}
debug: curl -k -H "X-API-Token: token-XXX" -X POST "https://192.168.1.29/rudder/api/latest/rules/categories/17bd27ad-24db-4b44-8218-ea0ec68714ce" -d "{'parent': 'd552b7df-be18-42f4-be05-c640a33eb168', 'name': 'Kernel 3.x', 'description': ''}" 

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #15171: Cannot get Rule tree with the APIReleasedNicolas CHARLESActions
Related to Rudder - Bug #16164: We cannot get the rules categories with the APIReleasedFrançois ARMANDActions
Actions

Also available in: Atom PDF