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

--show_diff causes crashes on files with UTF-8 content

    XMLWordPrintable

    Details

    • Template:
    • Acceptance Criteria:
      • "--show_diff" does not error on files with UTF-8 content
    • Team:
      Agent
    • Story Points:
      3
    • CS Priority:
      Reviewed
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      see PUP-7063 for release notes for this issue

      Description

      Run puppet apply with a manifest with a file block which uses a source which contains UTF-8 text.

      Works as expected normally, however if the --show-diff flag is passed then it bails out with an error such as:

      Error: /Stage[main]/Users::Bobtfish/File[/home/bobtfish/.gitconfig]/content: change from

      {md5}8134292fa03d49e18941395afa85904e to {md5}

      3fb27c4b9babe9f7808916e49bce3dbb failed: "\xE2" from ASCII-8BIT to UTF-8

      Note - this only happens when there are differences to be applied (i.e. when there are diffs to show)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              bobtfish Tomas Doran
              QA Contact:
              Narmadha Perumal
              Votes:
              1 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support