Actions
Bug #12712
closedAPI generate error 500 when try update a ruleCategory
Pull Request:
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': ''}"
Actions