Project

General

Profile

Actions

Bug #21184

closed

Escaping issues in the technique editor

Added by Félix DALLIDET almost 2 years ago. Updated almost 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 #1

Updated by Alexis Mousset almost 2 years ago

  • File ver.png added
Actions #2

Updated by Alexis Mousset almost 2 years ago

  • File deleted (ver.png)
Actions #3

Updated by Alexis Mousset almost 2 years ago

IT is one of 7.0's breaking changes: #19919

Actions #4

Updated by Alexis Mousset almost 2 years ago

  • Is duplicate of 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 change added
Actions #5

Updated by Alexis Mousset almost 2 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF