Project

General

Profile

Actions

Bug #21184

closed

Escaping issues in the technique editor

Added by Félix DALLIDET over 2 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
-
Target version:
-
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

Testing rare escaping sequences.json (584 Bytes) Testing rare escaping sequences.json Félix DALLIDET, 2022-05-25 15:22

Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #19919: Document that escaping is incoherent with the rest in Technique Editor in 6.X, that it is corrected in 7.0, and that's a breaking changeReleasedAlexis MoussetActions
Actions

Also available in: Atom PDF