Uploaded image for project: 'Puppet Enterprise'
  1. Puppet Enterprise
  2. ENTERPRISE-758

File resource reports invalid byte sequence in US-ASCII for chinese character filename

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • PE 3.7.2
    • None
    • None
    • None

    Description

      Summary:
      File resources will report invalid byte sequence in US-ASCII. It could not translate chinese characters filename.

      Error:

      Error: /Stage[main]/Chinesefile/File[/tmp/尝试文件]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/chinesefile/尝试文件: invalid byte sequence in US-ASCII
      Wrapped exception:
      invalid byte sequence in US-ASCII
      

      Steps to reproduce:

      manifests/init.pp: 
      class chinesefile {
        file {'/tmp/尝试文件':
          ensure => file,
          source => 'puppet:///modules/chinesefile/尝试文件',
        }
      }
       
      files/尝试文件:
      echo testing123 > files/尝试文件
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cj.toolseram CJ Toolseram [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support