Project

General

Profile

Actions

Bug #19900

closed

rudderc doesn't support multiline text

Added by Nicolas CHARLES over 3 years ago. Updated about 3 years ago.

Status:
Released
Priority:
N/A
Category:
rudderc
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

I tried to set up a file line present with multiline

\\"x
\'
\\'
\

policy generation failed, as generated code is

# generated by rudderc
# @name technique
# @version 1.0
# @description 

bundle agent technique____x {

  vars:
    "resources_dir"        string => "${this.promise_dirname}/resources";
    "args"                  slist => {};
    "report_param"         string => join("_", args);
    "full_class_prefix"    string => canonify("technique____x_${report_param}");
    "class_prefix"         string => string_head("${full_class_prefix}", "1000");

  methods:
    # File lines present:
    # 
    #   file("""/tmp/file\\"x""").lines_present("""\\"x
\'
\\'
\""") as file_lines_present__tmp_file___x
    # 
    "01d82ff7-f479-4451-a545-e5150efb427b" usebundle => _method_reporting_context("File lines present", "/tmp/file\\\\\"x");
    "01d82ff7-f479-4451-a545-e5150efb427b" usebundle => file_lines_present("/tmp/file\\\\\"x", "\\\\\"x
\\'
\\\\'
\\");

}

Comment is not multilining :/

Actions #1

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 7.0.0~beta1 to 7.0.0~beta2
Actions #2

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 7.0.0~beta2 to 7.0.0~beta3
Actions #3

Updated by Benoît PECCATTE about 3 years ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE
Actions #4

Updated by Benoît PECCATTE about 3 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder/pull/3965
Actions #5

Updated by Benoît PECCATTE about 3 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Vincent MEMBRÉ about 3 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.0~beta3 which was released today.

Actions

Also available in: Atom PDF