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

yaml references not interpreted correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 3.7.2
    • Fix Version/s: None
    • Component/s: Built-in functions
    • Labels:
      None

      Description

      Hi!
      yaml references are not interpreted correctly:

      key1: &ref value1
      key2: *ref
      key3:
      - value3
      

      This results in the following error:

      json-yaml.c:206: Programming Error: YAML Parse: Unexpected sequence start event inside a container without a key
         error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "./test_yamlparser01.cf"'
         error: Failsafe condition triggered. Interactive session detected, skipping failsafe.cf execution.
         error: Error reading CFEngine policy. Exiting...
      

      If references are not supported, this should not crash but give an error message like "error: Non-container from parsing YAML expression" when you insert random characters into the yaml.

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              r.lindner Ronny Lindner
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel