Actions
Bug #21184
closedEscaping issues in the technique editor
Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
-
Target version:
-
Pull Request:
Severity:
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Description
In 6.2 it seems like the pattern `\\"` does break the escaping engine. See the attached technique export, taken from a 6.2.13.
The generation error it produces when trying to apply a directive of the technique on a Linux node:
⇨ Policy update error for process '17' at 2022-05-25 13:18:43 ⇨ 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/Testing_rare_escaping_sequences/1.0/technique.cf:12:211: error: syntax error "Command execution_${report_data.directive_id}_0" usebundle => _method_reporting_context("Command execution", "\"C:\\Windows\\""), ...] (for node(s) root)
I was unable to reproduce on a 7.0+ server.
Files
Actions