Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9365

Newlines in resource titles result in invalid .dot files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Needs Information
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Template:
      PUP Bug Template
    • Team:
      Coremunity
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.0.4
      Puppet Server Version:
      OS Name/Version: Linux

      Puppet does not escape newlines in resource titles when generating graph files:

       

      # puppet apply --graph -e 'notify {"line1\nline2":}'
      ...
      # dotty .puppetlabs/opt/puppet/cache/state/graphs/resources.dot
      graph parser: string ran past end of line near line 18
      context: >>> Notif <<< y[line1
      line1
      dotty.lefty: cannot load graph
      

      Desired Behavior:

      Newlines in generated node IDs and labels should be escaped with \

      Actual Behavior:

      Newlines are not escaped, .dot files have syntax errors

       

        Attachments

          Activity

            People

            Assignee:
            mihkela Mihkel Ader
            Reporter:
            mihkela Mihkel Ader
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support