Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
PUP 3.8.2
-
None
-
Ruby 1.9.x
-
- Existing test suites pass
- May need additional acceptance tests to handle edge cases
- Test cases should include puppet apply as well as puppet server.
-
Agent
-
5
-
Agent 2017-04-05, Agent 2017-04-19, Agent 2017-05-03, Agent 2017-05-31, Agent 2017-06-14
-
Reviewed
-
Bug Fix
-
In some scenarios puppet could fail to manage file resources with UTF-8 file names because of incorrect character encoding and escaping when transforming requests into URI-compatible text. This is resolved in puppet 4.10.2 and 5.0.0.
-
No Action
-
Tested in spec
Description
Hi,
I am running a puppet server under Ubuntu 12.04 (Puppet 2.7.11) and a puppet client under Ubuntu 14.04 (Puppet 3.4.2).
I am distributing a directory of ttf fonts from the server to the clients, the rule is
file
{"/usr/local/share/fonts/FreeFonts": ensure => directory, mode => 0444, recurse => true, purge => true, source => "puppet:///modules/hadmut/soft/Daten/Fonts/Installation/FreeFonts", }This works with a great number of font files, but fails with one particular font:
Error: Could not set 'file' on ensure: invalid byte sequence in US-ASCII
Error: Could not set 'file' on ensure: invalid byte sequence in US-ASCII
Wrapped exception:
invalid byte sequence in US-ASCII
Error: /Stage[main]/Hadmut::Application::X11_common/File[/usr/local/share/fonts/FreeFonts/Momоt___.ttf]/ensure: change from absent to file failed: Could not set 'file' on ensure: invalid byte sequence in US-ASCII
For some reason Puppet assumes that this is an US-ASCII text file, but it should treat this as a binary.
Attachments
Issue Links
- blocks
-
ENTERPRISE-758 File resource reports invalid byte sequence in US-ASCII for chinese character filename
-
- Open
-
- is duplicated by
-
PUP-6329 puppet apply fails with "Error: Could not set 'file' on ensure: invalid byte sequence in US-ASCII" with non-ASCII filename
-
- Closed
-
- relates to
-
PUP-2700 Puppet 3.6.1 File recurse improperly handles spaces in filenames
-
- Closed
-
-
PUP-7658 Puppet 4.10.2 fails when Facter facts contains ampersand
-
- Closed
-
-
SERVER-1954 Puppet Server incorrectly handling URI decoding
-
- Closed
-
-
PUP-3135 Square brackets in file names not handled properly
-
- Accepted
-
-
PUP-7665 Puppet 5 fails when facter facts contain ampersands
-
- Closed
-
- links to