Actions
Bug #17141
closedWhen we add a multiline description in a technique, it breaks policy generation and technique loadingg
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Technique editor
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:
Description
if we set a multiline description in technique, only the first line is correctly escaped, resulting in an error
⇨ Policy update error for process '27' at 2020-04-16 18:03:04 ⇨ Cannot write nodes configuration ⇨ Unexpected: Error when executing hooks: Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. [stdout:][stderr:/var/rudder/cfengine-community/inputs.new/plugin_openscap_policies/1.0/technique.cf:4:5: error: syntax error This Technique takes 2 parameters: ^
indeed, text is not correctly escaped
Happens in 6.0 and master, 5.0 is safe from that
Actions