Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5822

Puppet Crashes when Unicode User Applies Manifest

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Incomplete
    • None
    • None
    • Windows

    Description

      Description

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

      Attachments

      • Video Capture

      Reproduction Steps

      1. Install Puppet Agent on SUT.
      2. Create user "Jöhn".
      3. Logoff and login as "Jöhn".
      4. Create the manifest "C:\test.pp" on the SUT with the following content:

        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',
        }

      5. Open a Puppet Console session as Administrator.
      6. Change console font to "Lucidia Console". (Puppet will crash otherwise. PUP-5717)
      7. Change codepage:

        chcp 65001

      8. Execute the following command on the SUT:

        puppet apply c:\test.pp

      Expect

      The Puppet run should succeed.

      Actual

      Puppet crashes. See attached video capture for more details.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ryan.gard Ryan Gard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support