Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3058

Columns edit values always get escaped (which prevents some ini editions for examples)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      When editing columns in a file, the inserted value is always escaped, which prevents settings values like:

      key = "value"
      

      because they get replaced by:

      key = \\"value\\"
      # or, depending of the presence of a value_separator
      key = \"value\"
      

      This happened between 3.9.1 and 3.9.2 with https://github.com/cfengine/core/commit/ca19a3d8c190f9e513e20e51b6653643f38600f9 (CFE-2438), due to the replacement of an strcat(RlistScalarValue) by RvalWrite (which does escaping) in Rlist2String.

      I'm not sure how to fix this as some users may rely on this behavior in their policies now.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amousset Alexis Mousset
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: