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

File resource doesn't seem to parse UTF8 filenames when recursively copying directories

    Details

    • Template:
      PUP Bug Template
    • Team:
      Platform OS
    • Sprint:
      Platform OS Kanban
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 5.5.1 (Win x64)
      Puppet Server Version: N/A
      OS Name/Version: Windows 10 - 1803

      Desired Behavior:

      Given a manifest saved as UTF8

      file { "c:\\install\\test\\Testing-wordsé":
        ensure  => file,
        content => 'Testing é',
      } ->
       
      file { "c:\\install\\test\\Testing-words-copyé":
        ensure => file,
        source => "c:\\install\\test\\Testing-wordsé",
      } ->
       
      file { "c:\\install\\test2":
        ensure  => directory,
        source  => "c:\\install\\test",
          recurse => remote,
          replace => true,
      }
      

      It should create the files in the C:\install\test directory
      It should copy the C:\install\test directory to C:\install\test2

      Actual Behavior:

      Puppet apply errors with;

      Could not set 'file' on ensure: invalid byte sequence in UTF-8

      Full trace dump in comments

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                casey.williams Casey Williams
                Reporter:
                glenn.sarti Glenn Sarti
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: