Jira (PUP-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-05-24 Thread Larissa Lane (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Larissa Lane updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Larissa Lane 
 
 
 

Labels:
 
 i18n utf-8 windows 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-02-29 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Ethan Brown 
 
 
 

Release Notes Summary:
 
 Due to a Ruby bug on Windows, reading and writing environment variables that contain Unicode characters may corrupt the local processes copy when they are accessed through Ruby's ENV class.  As a result, prior to this fix, the process environment for Puppet will corrupt environment variables with any Unicode characters that can't be represented in the current local codepage when the internal helper function withenv is used.  This affects Windows and PowerShell exec providers, and when arbitrary exec resources are run, can result in the creation of multiple user directories similar to the current username when a Windows user profile directory contains Unicode characters. The Ruby bug around ENV access is filed as https://bugs.ruby-lang.org/issues/8822 and has not yet been backported to the version of Ruby that Puppet runs on.  A related issue is filed at https://bugs.ruby-lang.org/issues/9715 
 
 
 

Release Notes:
 
 Bug Fix 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving

Jira (PUP-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-02-26 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Josh Cooper 
 
 
 

Fix Version/s:
 
 PUP 4.3.3 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-02-04 Thread Ryan Gard (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ryan Gard assigned an issue to Glenn Sarti 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Ryan Gard 
 
 
 

Resolution:
 
 Fixed 
 
 
 

Assignee:
 
 Ryan Gard Glenn Sarti 
 
 
 

Status:
 
 Ready for Test Resolved 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-02-04 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown assigned an issue to Ryan Gard 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
Ryan Gard you should be able to follow Glenns' instructions for a repro case, but let me know if you'd like any additional repros for this problem or have any questions. 
 
 
 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Ethan Brown 
 
 
 

Assignee:
 
 qa Ryan Gard 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-02-04 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown assigned an issue to qa 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Ethan Brown 
 
 
 

Status:
 
 Ready for  CI  Test 
 
 
 

Assignee:
 
 Ethan Brown qa 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-28 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown commented on  PUP-5726 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 
 
Fix merged to stable at https://github.com/puppetlabs/puppet/commit/669cffd2be5f3a38befabc04cf5b9a2e6eb3031d 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-28 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown commented on  PUP-5726 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 
 
CI failed as a result of env vars containing = 
A PR is up to address this problem at https://github.com/puppetlabs/puppet/pull/4607 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-28 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown commented on  PUP-5726 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 
 
Merged to stable in https://github.com/puppetlabs/puppet/commit/7e9a8fcc92c256121f4cb92fd7e2fe528febde96 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-27 Thread Ryan Gard (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ryan Gard updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Ryan Gard 
 
 
 

QA Risk Assessment:
 
 Medium 
 
 
 

QA Status:
 
 Reviewed 
 
 
 

QA Contact:
 
 Ryan Gard 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-27 Thread Steve Barlow (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Steve Barlow updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Steve Barlow 
 
 
 

Sprint:
 
 Windows 2016-01-27 , Windows 2016-02-10 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-26 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti assigned an issue to Ethan Brown 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Glenn Sarti 
 
 
 

Assignee:
 
 Ethan Brown 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-25 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Ethan Brown 
 
 
 

Fix Version/s:
 
 PUP 4.4.0 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-25 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Ethan Brown 
 
 
 

Fix Version/s:
 
 PUP 4.x 
 
 
 

Fix Version/s:
 
 PUP 4.3.3 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-20 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti commented on  PUP-5726 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 
 
Ruby does read in wide strings. No idea why they appear non-wide when queried via ENV Fixed in Ruby 1.9. https://redmine.ruby-lang.org/issues/5570 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-20 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown commented on  PUP-5726 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 
 
Glenn Sarti and I discussed. It looks like there are very few touch points around the Puppet::Util.withenv function implemented at https://github.com/puppetlabs/puppet/blob/0730dac3985f72b24f050fefc1cc0820760586b5/lib/puppet/util.rb#L26-L40 which appears to be a problem spot for Ruby. 
I think we can safely / in a backward compatible way use the GetEnvironmentStrings API call to capture / restore the environment on Windows. This should probably be implemented inside puppet\\util\\windowsprocess.rb 
It looks like execpipe at https://github.com/puppetlabs/puppet/blob/0730dac3985f72b24f050fefc1cc0820760586b5/lib/puppet/util/execution.rb#L79, execute_windows at https://github.com/puppetlabs/puppet/blob/0730dac3985f72b24f050fefc1cc0820760586b5/lib/puppet/util/execution.rb#L79 and checkexe in the exec provider for Windows https://github.com/puppetlabs/puppet/blob/0730dac3985f72b24f050fefc1cc0820760586b5/lib/puppet/provider/exec/windows.rb#L48 are the touch points (in addition to modifying a few tests and writing a few new tests). 
Also worth checking the existing PowerShell module to see if it leverages the underlying Puppet code or not. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-20 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti commented on  PUP-5726 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 
 
So the environment is being mangled by Ruby after invocation; 
This code block "saves" the environment, runs the external command and then "restores" the environment https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/execution.rb#L320-L322 
This is the code that does the mangling https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util.rb#L26-L40 
It appears to be the usual internal/external string encoding problem 
A bug was raised in Ruby and is still open (2yrs old_ https://bugs.ruby-lang.org/issues/9715 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-20 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti commented on  PUP-5726 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 
 
These folders are being created by invoking powershell. It can be replicated by just running powershell.exe instead of puppet. However it seems that the exec windows provider is invoking the only_if and command parameters differently (different encoding) which explains the two different folder names 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-19 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Glenn Sarti 
 
 
 

Fix Version/s:
 
 PUP 4.x 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-19 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti assigned an issue to Glenn Sarti 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Glenn Sarti 
 
 
 

Assignee:
 
 Glenn Sarti 
 
 
 

Story Points:
 
 2 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-19 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Change By:
 
 Glenn Sarti 
 
 
 

Scope Change Category:
 
 Found 
 
 
 

Scope Change Reason:
 
 Added as part of investigation of PUP-4339 which was part of the this sprint 
 
 
 

Sprint:
 
 Windows 2016-01-27 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-19 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti commented on  PUP-5726 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 
 
Repro Steps: 
Use the following manifest 
 
 
 
 
 
 
exec { 'tomcat-configure-service': 
 
 
 
 
		command  => "powershell.exe Get-ChildItem Env:", 
 
 
 
 
		_onlyif_   => 'powershell.exe exit 0',   
 
 
 
 
		provider => windows, 
 
 
 
 
		logoutput => true, 
 
 
 
 
		#notify => $tomcat_service, 
 
 
 
 
		tag  => 'tomcat-configure-service', 
 
 
 
 
	}
 
 
 
 
 
 
 
The manifest itself does nothing, but it triggers the bad behaviour 
Using CMD.EXE; 
 

Change the codepage to UTF8 using 
 
 
 
  

Jira (PUP-5726) Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created

2016-01-19 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5726 
 
 
 
  Non-English values for USERNAME and USERPROFILE causes multiple home directories to be created  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.3.2 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2016/01/19 4:39 PM 
 
 
 

Environment:
 
 
Windows Server 2012 R2 x64 Debug: Runtime environment: puppet_version=4.3.2, ruby_version=2.1.7, run_mode=u ser, default_encoding=IBM437 
 
 
 

Labels:
 

 windows 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Glenn Sarti 
 
 
 
 
 
 
 
 
 
 
As part of the investigation into PUP-4339 it was discovered Puppet creates multiple home directories for a user if their home path contains non-english characters (e.g. Umlaut).