Issue #22107 has been updated by Dustin Mitchell.
OK, this minimal recipe displays two failures:
require 'stringio'
require 'facter'
require 'facter/util/plist'
# this is critical, otherwise the Facter::Util::Plist stuff just
creates an XML plist and all is well
require 'facter/util/cfpropertylist/lib/rbCFPropertyList'
# 128 characters, error in data_to_binary
a = ("A" * 127) + "\xA1"
# 127 characters, error in join
b = ("A" * 126) + "\xA1"
pl = [StringIO.new(a)]
Plist::Emit.save_plist(pl, "tmp.plist")
For `new(a)`, I get
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbBinaryCFPropertyList.rb:522:in
`data_to_binary': incompatible character encodings: ASCII-8BIT and UTF-8
(Encoding::CompatibilityError)
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbCFTypes.rb:193:in
`to_binary'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbBinaryCFPropertyList.rb:534:in
`block in array_to_binary'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbBinaryCFPropertyList.rb:534:in
`map'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbBinaryCFPropertyList.rb:534:in
`array_to_binary'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbCFTypes.rb:215:in
`to_binary'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbBinaryCFPropertyList.rb:70:in
`to_str'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbCFPropertyList.rb:364:in
`to_str'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbCFPropertyList.rb:376:in
`to_plist'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/plist/generator.rb:54:in
`block in save_plist'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/plist/generator.rb:53:in
`open'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/plist/generator.rb:53:in
`save_plist'
from bar.rb:14:in `<main>'
while for `new(b)`, I get
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbBinaryCFPropertyList.rb:78:in
`join': incompatible character encodings: ASCII-8BIT and UTF-8
(Encoding::CompatibilityError)
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbBinaryCFPropertyList.rb:78:in
`to_str'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbCFPropertyList.rb:364:in
`to_str'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/cfpropertylist/lib/rbCFPropertyList.rb:376:in
`to_plist'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/plist/generator.rb:54:in
`block in save_plist'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/plist/generator.rb:53:in
`open'
from
/Library/Ruby/Gems/2.0.0/gems/facter-1.7.2/lib/facter/util/plist/generator.rb:53:in
`save_plist'
from bar.rb:14:in `<main>'
----------------------------------------
Bug #22107: user provider fails on OS X 10.9 Mavericks
https://projects.puppetlabs.com/issues/22107#change-96159
* Author: Dustin Mitchell
* Status: Needs More Information
* Priority: Normal
* Assignee: Dustin Mitchell
* Category:
* Target version:
* Affected Puppet version:
* Keywords:
* Branch:
----------------------------------------
t-maverick-r5-001:~ root# cat foo.pp
user { 'test':
iterations => '26954',
salt => '81b3d509c7b4d0c1d8e8021bdd5fa21e8b095a60b7ab3f00a5c3fa98fb4d5f39',
password =>
'265845a0e1c47c558b8845c2c43eccd74eda5dd2d00b501be02a4fe8878d6692fe87803533d72c2a7911576c3df9227d4b8d22dcb692d1b75d50cee2053154e7afcf06280c11369b7d473f7a3012eb5ab3f3fe8e7fef80e561a327aebfa243e749e64052742d9aa3639c6422a083fdecca26b04620949003caa812e1d13bb9d7';
}
t-maverick-r5-001:~ root# puppet apply foo.pp
Error: Could not set 'present' on ensure: incompatible character encodings:
ASCII-8BIT and US-ASCII at 5:/private/var/root/foo.pp
Error: Could not set 'present' on ensure: incompatible character encodings:
ASCII-8BIT and US-ASCII at 5:/private/var/root/foo.pp
Wrapped exception:
incompatible character encodings: ASCII-8BIT and US-ASCII
Error: /User[test]/ensure: change from absent to present failed: Could not
set 'present' on ensure: incompatible character encodings: ASCII-8BIT and
US-ASCII at 5:/private/var/root/foo.pp
Notice: Finished catalog run in 5.94 seconds
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.