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

Puppet crashes on Windows if 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall' not exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 3.7.1
    • Component/s: None
    • Labels:
    • Environment:

      Windows 2003 R2 SP2 (and other Windows versions, I think)

    • Template:

      Description

      When I run 'puppet resource package' on Windows - I get error "Error: Could not run: invalid byte sequence in US-ASCII".

      At first I thought it was a problem with encoding (https://tickets.puppetlabs.com/browse/PUP-2154), but it was deeper.

      I patched .\Puppet Labs\Puppet\puppet\lib\puppet\util\windows\registry.rb to avoid a 'invalid byte sequence in US-ASCII' error (sorry, I don't know ruby and it may be a very dirty code)

      Patched file (lines 19-34): http://pastebin.com/SsrUFSLs

      I got this output: http://pastebin.com/8xnhA9rN

      Registry subkey 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall' is missing and Puppet incorrectly handle this situation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kylo Kylo Ginsberg
              Reporter:
              strangeman Anton Markelov
              QA Contact:
              Erik Dasher
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support