Jira (FACT-3099) Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8

2021-12-06 Thread Dorin Pleava (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Dorin Pleava assigned an issue to Dorin Pleava  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3099  
 
 
  Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8
 

  
 
 
 
 

 
Change By: 
 Dorin Pleava  
 
 
Assignee: 
 Dorin Pleava  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.424265.1637249217000.20608.1638801840065%40Atlassian.JIRA.


Jira (FACT-3099) Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8

2021-12-06 Thread Ciprian Badescu (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ciprian Badescu updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3099  
 
 
  Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8
 

  
 
 
 
 

 
Change By: 
 Ciprian Badescu  
 
 
Story Points: 
 2  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.424265.1637249217000.20140.1638782040035%40Atlassian.JIRA.


Jira (FACT-3099) Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8

2021-12-06 Thread Ciprian Badescu (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ciprian Badescu updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3099  
 
 
  Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8
 

  
 
 
 
 

 
Change By: 
 Ciprian Badescu  
 
 
Sprint: 
 NW - 2021-12-17  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.424265.1637249217000.20116.1638779580031%40Atlassian.JIRA.


Jira (FACT-3099) Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8

2021-12-03 Thread Dorin Pleava (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Dorin Pleava commented on  FACT-3099  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8
 

  
 
 
 
 

 
 Managed to reproduce this with a configured ec2 instance that had ec2_userdata set to some UTF-8 values. I did not reproduce this with a custom fact that returns UTF-8 data. Also this ""xCC" from ASCII-8BIT to UTF-8" happens when outputting combination if ASCII and UTF-8 facts.   
 
 
 
 
 $ facter ec2_userdata  
 
 
 - [ vdb, /build1, "xfs", "nofail̦", "0", "0" ]  
 
 
 $ facter uptime  
 
 
 0:49 hours  
 
 
 $ facter uptime ec2_userdata  
 
 
 Traceback (most recent call last):  
 
 
 	13: from /opt/puppetlabs/puppet/bin/facter:10:in `'  
 
 
 	12: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/cli/cli_launcher.rb:23:in `start'  
 
 
 	11: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'  
 
 
 	10: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'  
 
 
 	 9: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'  
 
 

Jira (FACT-3099) Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8

2021-11-29 Thread Ciprian Badescu (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ciprian Badescu updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3099  
 
 
  Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8
 

  
 
 
 
 

 
Change By: 
 Ciprian Badescu  
 
 
Labels: 
 needs_repro  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.424265.1637249217000.13706.1638199140258%40Atlassian.JIRA.


Jira (FACT-3099) Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8

2021-11-29 Thread Ciprian Badescu (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ciprian Badescu updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3099  
 
 
  Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8
 

  
 
 
 
 

 
Change By: 
 Ciprian Badescu  
 
 
Team: 
 Night's Watch  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.424265.1637249217000.13701.1638199080086%40Atlassian.JIRA.


Jira (FACT-3099) Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8

2021-11-18 Thread Steve Traylen (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Steve Traylen commented on  FACT-3099  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8
 

  
 
 
 
 

 
 Should have added that with facter 3.14.15 the cache is created correctly as UTF-8. ``` file /opt/puppetlabs/facter/cache/cached_facts/EC2 /opt/puppetlabs/facter/cache/cached_facts/EC2: UTF-8 Unicode text, with very long lines ``` and the returned value from cache is UTF-8.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.424265.1637249217000.10512.1637249940059%40Atlassian.JIRA.


Jira (FACT-3099) Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8

2021-11-18 Thread Steve Traylen (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Steve Traylen updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3099  
 
 
  Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8
 

  
 
 
 
 

 
Change By: 
 Steve Traylen  
 

  
 
 
 
 

 
 This is with the ec2_userdata fact but I expect true for any fact where the value is UTF-8 and the fact is cached.Userdata is utf-8{noformat}curl --silent  http://169.254.169.254/openstack/latest/user_data | grep --color='auto' -P "[^[:ascii:]]"   - [ vdb, /build1, "xfs", "nofail̦", "0", "0" ]{noformat}When this is cached via a configuration of {noformat}facts: {  ttls: [  {  "EC2": "7 days"  }  ]}{noformat}Then this results in  a debug of{noformat}facter --debug ec2_userdata[2021-11-18 16:13:40.964313 ] DEBUG Facter::Util::Resolvers::Http - Request to http://169.254.169.254/latest/api/token failed with error code 404 [2021-11-18 16:13:42.090980 ] DEBUG Facter::CacheManager - EC2 facts cache file expired, missing or is corrupt [2021-11-18 16:13:42.091039 ] DEBUG Facter::CacheManager - caching values for EC2 facts Traceback (most recent call last): 15: from /opt/puppetlabs/puppet/bin/facter:10:in `' 14: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/cli/cli_launcher.rb:23:in `start' 13: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start' 12: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch' 11: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command' 10: from /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'  9: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/cli/cli.rb:124:in `query'  8: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.rb:454:in `to_user_output'  7: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.rb:521:in `resolve_facts_for_user_query'  6: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact_manager.rb:29:in `resolve_facts'  5: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/cache_manager.rb:38:in `cache_facts'  4: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/cache_manager.rb:166:in `write_cache'  3: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/cache_manager.rb:166:in `each' 2: from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/cache_manager.rb:175:in `block in write_cache' 1: from /opt/puppetlabs/puppet/lib/ruby/2.7.0/json/common.rb:286:in `pretty_generate'/opt/puppetlabs/puppet/lib/ruby/2.7.0/json/common.rb:286:in `generate': "\\xCC" from 

Jira (FACT-3099) Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8

2021-11-18 Thread Steve Traylen (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Steve Traylen created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-3099  
 
 
  Caching UTF8 values results in "\\xCC" from ASCII-8BIT to UTF-8
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 FACT 4.2.5  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Facter 4  
 
 
Created: 
 2021/11/18 7:26 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Steve Traylen  
 

  
 
 
 
 

 
 This is with the ec2_userdata fact but I expect true for any fact where the value is UTF-8 and the fact is cached. Userdata is utf-8  
 
 
 
 
 curl --silent  http://169.254.169.254/openstack/latest/user_data | grep --color='auto' -P "[^[:ascii:]]"   
 
 
   - [ vdb, /build1, "xfs", "nofail̦", "0", "0" ]
  
 
 
 
  When this is cached via a configuration of   
 
 
 
 
 facts: {