Project

General

Profile

Bug #13374

Tags in rules are ignored in POST API

Added by Benoît PECCATTE 4 months ago. Updated 17 days ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
0

Description

See related bug #12355

Please fix the same problem with rules, still exists in current Rudder 4.1.14.
Example json:

{"displayName": "#old test rule", "tags": [{"actual": "0"}], "enabled": true, "system": false, "id": "e848b263-2afb-403f-9c68-9e645caba5c9", "directives": [], "longDescription": "", "shortDescription": "", "targets": [{"exclude": {"or": []}, "include": {"or": []}}]}

Request is ok (I've tested it with POST), but nothing happens with tags in directive.

answer body is:
{"action":"updateRule","id":"e848b263-2afb-403f-9c68-9e645caba5c9","result":"success","data":{"rules":[{"id":"e848b263-2afb-403f-9c68-9e645caba5c9","displayName":"#old test rule","shortDescription":"","longDescription":"","directives":[],"targets":[{"include":{"or":[]},"exclude":{"or":[]}}],"enabled":true,"system":false,"tags":[{"actual":"1"}]}]}}

…and tags in web-interface remains in the same state.

Related issues

Related to Rudder - Bug #12355: Tags in directives are ignored in POST APIReleased

Associated revisions

Revision 5f8be88a (diff)
Added by Vincent MEMBRÉ about 1 month ago

Fixes #13374: Tags in rules are ignored in POST API

History

#1 Updated by Benoît PECCATTE 4 months ago

  • Related to Bug #12355: Tags in directives are ignored in POST API added

#2 Updated by François ARMAND 2 months ago

  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Effort required set to Very Small
  • Priority changed from 0 to 61

#3 Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 4.1.15 to 4.1.16

#4 Updated by Vincent MEMBRÉ about 1 month ago

  • Target version changed from 4.1.16 to 4.1.17
  • Priority changed from 61 to 60

#5 Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
  • Priority changed from 60 to 0

#6 Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/2062

#7 Updated by Normation Quality Assistant about 1 month ago

  • Assignee changed from François ARMAND to Vincent MEMBRÉ

#8 Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from Pending technical review to Pending release

#9 Updated by Vincent MEMBRÉ 17 days ago

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.1.17, 4.3.7 and 5.0.3 which were released today.
Changelog
Changelog
Changelog

Also available in: Atom PDF