Jira (PUP-5822) Puppet Crashes when Unicode User Applies Manifest

1 view
Skip to first unread message

Ryan Gard (JIRA)

unread,
Feb 4, 2016, 8:24:05 PM2/4/16
to puppe...@googlegroups.com
Ryan Gard updated an issue
 
Puppet / Bug PUP-5822
Puppet Crashes when Unicode User Applies Manifest
Change By: Ryan Gard
Summary: Facter Throws Unhandled Exception Puppet Crashes  when  Run Under  Unicode User  Applies Manifest
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Ryan Gard (JIRA)

unread,
Feb 4, 2016, 8:25:05 PM2/4/16
to puppe...@googlegroups.com
Ryan Gard updated an issue
h1. Description

If a user with Unicode name attempts to run a manifest
 that calls PowerShell  under the "65001" code page  it will  result in a failure:  cause Puppet to crash.

{noformat}Error: Could not initialize global default settings: Invalid argument @ dir_s_mk
dir - C:/Users/???{noformat}

h2. Attachments

* None.

h2. Reproduction Steps

# Install [Puppet Agent|http://nightlies.puppetlabs.com/puppet-agent/ec1f5692fa407d8b7e24e5eb6b6df7ff89288479/repos/windows/] on SUT.
# Create user "Jöhn".
# Logoff and login as "Jöhn".
# Create the manifest "C:\test.pp" on the SUT with the following content:
{noformat}exec { 'tomcat-configure-service':
  command  => "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe Get-ChildItem Env:",
  onlyif   => "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe exit 0",
  provider => windows,
  logoutput => true,
  tag      => 'tomcat-configure-service',
}{noformat}
# Open a Puppet Console session as Administrator.
# Change console font to "Lucidia Console". (Puppet will crash otherwise. PUP-5717)
# Change codepage:
{noformat}chcp 65001{noformat}
# Execute the following command on the SUT:
{noformat}puppet apply c:\test.pp{noformat}

h3. Expect

The Puppet run should succeed.

h2. Actual

Puppet crashes. See attached video capture for more details.

Ryan Gard (JIRA)

unread,
Feb 4, 2016, 8:28:03 PM2/4/16
to puppe...@googlegroups.com
Ryan Gard updated an issue
h1. Description

If a user with Unicode name attempts to run a manifest under the "65001" code page it will cause Puppet to crash.

h2. Attachments

*
 None.  Video Capture

Ryan Gard (JIRA)

unread,
Feb 4, 2016, 8:28:04 PM2/4/16
to puppe...@googlegroups.com
Ryan Gard updated an issue
Change By: Ryan Gard
Attachment: w2012r2.webm

Ryan Gard (JIRA)

unread,
May 24, 2016, 5:02:10 PM5/24/16
to puppe...@googlegroups.com
Ryan Gard updated an issue
Change By: Ryan Gard
QA Contact: Ryan Gard
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Larissa Lane (JIRA)

unread,
May 24, 2016, 6:22:06 PM5/24/16
to puppe...@googlegroups.com
Larissa Lane updated an issue
Change By: Larissa Lane
Labels: i18n utf-8 windows

Henrik Lindberg (JIRA)

unread,
May 16, 2017, 8:36:02 AM5/16/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Labels: i18n  triaged  utf-8 windows
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 5, 2020, 3:09:03 AM3/5/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-5822
 
Re: Puppet Crashes when Unicode User Applies Manifest

This is resolved, closing

C:\Windows\system32>puppet apply manifest.pp
Notice: Compiled catalog for cozy-teacher.delivery.puppetlabs.net in environment production in 0.10 seconds
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns:
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: Name                           Value                                                                                                         
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ----                           -----                                                                                                         
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ALLUSERSPROFILE                C:\ProgramData                                                                                                
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: APPDATA                        C:\Users\Jöhn\AppData\Roaming                                                                                 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: CommonProgramFiles             C:\Program Files\Common Files                                                                                 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: CommonProgramFiles(x86)        C:\Program Files (x86)\Common Files                                                                           
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: CommonProgramW6432             C:\Program Files\Common Files                                                                                 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: COMPUTERNAME                   COZY-TEACHER                                                                                                  
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ComSpec                        C:\Windows\system32\cmd.exe                                                                                   
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: CYGWINDIR                      C:\cygwin64                                                                                                   
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: FACTER_env_windows_installdir  C:\Program Files\Puppet Labs\Puppet                                                                           
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: GIT_EDITOR                     C:/cygwin64/bin/vi.exe                                                                                        
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: HOME                           C:/Windows/system32                                                                                           
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: HOMEDRIVE                      C:                                                                                                            
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: HOMEPATH                       \Windows\system32                                                                                             
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: LOCALAPPDATA                   C:\Users\Jöhn\AppData\Local                                                                                   
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: NUMBER_OF_PROCESSORS           2                                                                                                             
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: OPENSSL_CONF                   C:\Program Files\Puppet Labs\Puppet\puppet\ssl\openssl.cnf                                                    
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: OS                             Windows_NT                                                                                                    
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: Path                           C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/../../../bin;C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/../../../../puppet/bin;C:\Progr...
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PATHEXT                        .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL                                                    
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PL_BASEDIR                     C:\Program Files\Puppet Labs\Puppet                                                                           
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROCESSOR_ARCHITECTURE         AMD64                                                                                                         
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROCESSOR_IDENTIFIER           Intel64 Family 6 Model 85 Stepping 4, GenuineIntel                                                            
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROCESSOR_LEVEL                6                                                                                                             
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROCESSOR_REVISION             5504                                                                                                          
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ProgramData                    C:\ProgramData                                                                                                
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ProgramFiles                   C:\Program Files                                                                                              
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ProgramFiles(x86)              C:\Program Files (x86)                                                                                        
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ProgramW6432                   C:\Program Files                                                                                              
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROMPT                         $P$G                                                                                                          
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PSModulePath                   C:\Users\Jöhn\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PUBLIC                         C:\Users\Public                                                                                               
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PUPPET_DIR                     C:\Program Files\Puppet Labs\Puppet\puppet                                                                    
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: RUBYLIB                        C:/Program Files/Puppet Labs/Puppet/puppet/lib;                                                               
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SSL_CERT_DIR                   C:\Program Files\Puppet Labs\Puppet\puppet\ssl\certs                                                          
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SSL_CERT_FILE                  C:\Program Files\Puppet Labs\Puppet\puppet\ssl\cert.pem                                                       
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SystemDrive                    C:                                                                                                            
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SystemRoot                     C:\Windows                                                                                                    
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: TEMP                           C:\Users\JHN~1\AppData\Local\Temp                                                                             
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: TMP                            C:\Users\JHN~1\AppData\Local\Temp                                                                             
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: USER                           Jöhn                                                                                                          
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: USERDOMAIN                     COZY-TEACHER                                                                                                  
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: USERNAME                       Jöhn                                                                                                          
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: USERPROFILE                    C:\Users\Jöhn                                                                                                 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: VMPOOLER_Build_Date            2020-01-21T14:13:27Z                                                                                          
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: VMPOOLER_Packer_SHA            e20e5a9ebbcdc8f1cb0c7b77c7a5c49abb4c103b                                                                      
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: VMPOOLER_Packer_Template       win-2016-x86_64                                                                                               
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: VMPOOLER_Packer_Template_Type  vmpooler                                                                                                      
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: windir                         C:\Windows                                                                                                    
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: executed successfully
Notice: Applied catalog in 0.69 seconds
C:\Windows\system32>whoami
cozy-teacher\jöhn

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages