Jira (PUP-1477) provider command throws exception on unicode

2020-05-07 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-1477  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: provider command throws exception on unicode
 

  
 
 
 
 

 
 This is not reproducible using recent puppet:  
 
 
 
 
 [centos@centos8-0 ~]$ cat /usr/bin/foobar  
 
 
 #!/opt/puppetlabs/puppet/bin/ruby  
 
 
    
 
 
 puts "\x2f\x62\x69\x6e\x2f\x62\x61\x73\x68\xe2\x80\x8b"  
 
 
 [centos@centos8-0 ~]$ /usr/bin/foobar | od -t x1 -  
 
 
 000 2f 62 69 6e 2f 62 61 73 68 e2 80 8b 0a  
 
 
 015  
 
 
 Debug: Executing: '/usr/bin/foobar'  
 
 
 /bin/bash  
 
 
 Debug: Executing: '/usr/bin/systemctl list-unit-files --type service --full --all --no-pager'
  
 
 
 
   
 

  
 
 
 
 

 
 
 

 
 

Jira (PUP-1477) provider command throws exception on unicode

2017-05-18 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1477 
 
 
 
  provider command throws exception on unicode   
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 needs_repro  triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1477) provider command throws exception on unicode

2017-05-15 Thread John Duarte (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 John Duarte updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1477 
 
 
 
  provider command throws exception on unicode   
 
 
 
 
 
 
 
 
 

Change By:
 
 John Duarte 
 
 
 

Labels:
 
 needs_repro  triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1477) provider command throws exception on unicode

2016-10-20 Thread Geoff Nichols (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Geoff Nichols updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1477 
 
 
 
  provider command throws exception on unicode   
 
 
 
 
 
 
 
 
 

Change By:
 
 Geoff Nichols 
 
 
 

Labels:
 
 needs_repro 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1477) provider command throws exception on unicode

2014-01-21 Thread cristi falcas (JIRA)
Title: Message Title










 

 cristi falcas created an issue


















 Puppet /  PUP-1477



  provider command throws exception on unicode  










Issue Type:

  Bug




Affects Versions:


 3.4.1




Assignee:

 Kylo Ginsberg




Components:


 Types and Providers




Created:


 21/Jan/14 2:50 AM




Priority:

  Normal




Reporter:

 cristi falcas










I have a provider for pbis configuration (linux and ad integration) and a command for '/opt/pbis/bin/config':
commands :pbis_config = '/opt/pbis/bin/config'
which I use it like so:
output = pbis_config(setting, value)
Sometimes the command from pbis returns a string that has a unicode character inside (a zero-width space). If this happens an exception is thrown with the following message:
Debug: Executing '/opt/pbis/bin/config --show LoginShellTemplate' Debug: Joindomain[join_domain](provider=pbis): Execution of '/opt/pbis/bin/config --show LoginShellTemplate' returned 1: Error: Out of memory
I tested the output of the command from the console and used perl to decode the strings:
perl -e 'print sprintf(x {%x}
, $_) foreach (unpack(C*, /bin/bash​));print\n' \x {2f}\x{62}\x{69}\x{6e}\x{2f}
\x {62}
 

Jira (PUP-1477) provider command throws exception on unicode

2014-01-21 Thread cristi falcas (JIRA)
Title: Message Title










 

 cristi falcas updated an issue


















 Puppet /  PUP-1477



  provider command throws exception on unicode  










Change By:

 cristi falcas









 Ihaveaproviderforpbisconfiguration(linuxandadintegration)andacommandfor'/opt/pbis/bin/config':commands:pbis_config='/opt/pbis/bin/config'whichIuseitlikeso:output=pbis_config(setting,value)Sometimesthecommandfrompbisreturnsastringthathasaunicodecharacterinside(azero-widthspace).Ifthishappensanexceptionisthrownwiththefollowingmessage:Debug:Executing'/opt/pbis/bin/config--showLoginShellTemplate'Debug:Joindomain[join_domain](provider=pbis):Executionof'/opt/pbis/bin/config--showLoginShellTemplate'returned1:Error:OutofmemoryItestedtheoutputofthecommandfromtheconsoleandusedperltodecodethestrings:  perl-e'printsprintf(\\x{%x},$_)foreach(unpack(C*,/bin/bash​));print\n'\x{2f}\x{62}\x{69}\x{6e}\x{2f}\x{62}\x{61}\x{73}\x{68}\x{e2}\x{80}\x{8b}Thelast3bytesaretheunicodecharactersforzero-widthspace.












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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 post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PUP-1477) provider command throws exception on unicode

2014-01-21 Thread cristi falcas (JIRA)
Title: Message Title










 

 cristi falcas updated an issue


















 Puppet /  PUP-1477



  provider command throws exception on unicode  










Change By:

 cristi falcas









 Ihaveaproviderforpbisconfiguration(linuxandadintegration)andacommandfor'/opt/pbis/bin/config':commands:pbis_config='/opt/pbis/bin/config'whichIuseitlikeso:output=pbis_config(setting,value)Sometimesthecommandfrompbisreturnsastringthathasaunicodecharacterinside(azero-widthspace).Ifthishappensanexceptionisthrownwiththefollowingmessage:Debug:Executing'/opt/pbis/bin/config--showLoginShellTemplate'Debug:Joindomain[join_domain](provider=pbis):Executionof'/opt/pbis/bin/config--showLoginShellTemplate'returned1:Error:OutofmemoryItestedtheoutputofthecommandfromtheconsoleandusedperltodecodethestrings:perl-e'printsprintf(\\x{%x},$_)foreach(unpack(C*,/bin/bash​));print\n'\x{2f}\x{62}\x{69}\x{6e}\x{2f}\x{62}\x{61}\x{73}\x{68}\x{e2}\x{80}\x{8b}Thelast3bytesaretheunicodecharactersforzero-widthspace.












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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 post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PUP-1477) provider command throws exception on unicode

2014-01-21 Thread cristi falcas (JIRA)
Title: Message Title










 

 cristi falcas updated an issue


















 Puppet /  PUP-1477



  provider command throws exception on unicode  










Change By:

 cristi falcas









 Ihaveaproviderforpbisconfiguration(linuxandadintegration)andacommandfor'/opt/pbis/bin/config':commands:pbis_config='/opt/pbis/bin/config'whichIuseitlikeso:output=pbis_config(setting,value)Sometimesthecommandfrompbisreturnsastringthathasaunicodecharacterinside(azero-widthspace).Ifthishappensanexceptionisthrownwiththefollowingmessage: {noformat} Debug:Executing'/opt/pbis/bin/config--showLoginShellTemplate'Debug:Joindomain[join_domain](provider=pbis):Executionof'/opt/pbis/bin/config--showLoginShellTemplate'returned1:Error:Outofmemory {noformat}   Itestedtheoutputofthecommandfromtheconsoleandusedperltodecodethestrings: {noformat} perl-e'printsprintf(\\x{%x},$_)foreach(unpack(C*,/bin/bash​));print\n'\x{2f}\x{62}\x{69}\x{6e}\x{2f}\x{62}\x{61}\x{73}\x{68}\x{e2}\x{80}\x{8b} {noformat}   Thelast3bytesaretheunicodecharactersforzero-widthspace.












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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 post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PUP-1477) provider command throws exception on unicode

2014-01-21 Thread cristi falcas (JIRA)
Title: Message Title










 

 cristi falcas updated an issue


















 Puppet /  PUP-1477



  provider command throws exception on unicode  










Change By:

 cristi falcas









 Ihaveaproviderforpbisconfiguration(linuxandadintegration)andacommandfor'/opt/pbis/bin/config':commands:pbis_config='/opt/pbis/bin/config'whichIuseitlikeso:output=pbis_config(setting,value)Sometimesthecommandfrompbisreturnsastringthathasaunicodecharacterinside(azero-widthspace).Ifthishappensanexceptionisthrownwiththefollowingmessage:{noformat}Debug:Executing'/opt/pbis/bin/config--showLoginShellTemplate'Debug:Joindomain[join_domain](provider=pbis):Executionof'/opt/pbis/bin/config--showLoginShellTemplate'returned1:Error:Outofmemory{noformat}Itestedtheoutputofthecommandfromtheconsoleandusedperltodecodethestrings:{noformat}perl-e'printsprintf(\\x{%x},$_)foreach(unpack(C*,/bin/bash​));print\n'\x{2f}\x{62}\x{69}\x{6e}\x{2f}\x{62}\x{61}\x{73}\x{68}\x{e2}\x{80}\x{8b}{noformat}Thelast3bytesaretheunicodecharactersforzero-widthspace. Fulloutputofthecommand:{noformat}/opt/pbis/bin/config--showLoginShellTemplatestring/bin/bash​localpolicy{noformat}












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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 post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PUP-1477) provider command throws exception on unicode

2014-01-21 Thread Kylo Ginsberg (JIRA)
Title: Message Title










 

 Kylo Ginsberg commented on an issue


















  Re: provider command throws exception on unicode  










cristi falcas thanks for reporting this issue! Can you add what version(s) of Ruby you are seeing this with? And what the output of 'locale' is?
Also, just a note that this is apparently UTF-8 encoding of the zero-width space. E.g. see http://www.fileformat.info/info/unicode/char/200B/index.htm.












   

 Add Comment

























 Puppet /  PUP-1477



  provider command throws exception on unicode  







 I have a provider for pbis configuration (linux and ad integration) and a command for '/opt/pbis/bin/config':   commands :pbis_config = '/opt/pbis/bin/config'   which I use it like so:   output = pbis_config(setting, value)   Sometimes the command from pbis returns a string that has a unicode character inside (a zero-width space). If this happens a...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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 post to this 

Jira (PUP-1477) provider command throws exception on unicode

2014-01-21 Thread cristi falcas (JIRA)
Title: Message Title










 

 cristi falcas commented on an issue


















  Re: provider command throws exception on unicode  










Here is the information required:
[root@v-323-op-app1 ~]# locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_ALL=
ruby-1.8.7.374-1.el5
[root@v-323-op-app1 ~]# cat /etc/oracle-release Oracle Linux Server release 5.9












   

 Add Comment

























 Puppet /  PUP-1477



  provider command throws exception on unicode  







 I have a provider for pbis configuration (linux and ad integration) and a command for '/opt/pbis/bin/config':   commands :pbis_config = '/opt/pbis/bin/config'   which I use it like so:   output = pbis_config(setting, value)   Sometimes the command from pbis returns a string that has a unicode character inside (a zero-width space). If this happens a...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)