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

puppet package provider fails when reading from registry

    Details

    • Template:
      PUP Bug Template
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows PupperCon 2018-11-16, Windows 2018-11-28, Windows 2018-12-05
    • Method Found:
      Customer Feedback
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 5.5.6
      Puppet Server Version: 5.3.5
      OS Name/Version: Windows 2016

      The ClaySys AppForms 6 application creates a Registry key in:

      HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\ClaySys AppForms_6\ConnectionString

      ... that causes the Windows package provider to fail. The data appears to binary but reg_enum_value expects a string and calls read_wide_string in ...

      https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/windows/package.rb#L28
      https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/windows/registry.rb#L62
      https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/windows/registry.rb#L120

      Desired Behavior: It does not fail.

      Actual Behavior:

      Debug: Unable to convert value "8\xB3zk\xF6\xBB\xDF\n\x18lK8\xA1\xAA\x96\xA9T0\tB \xFC\xF5\v\xC0>\xE2\xC0\xDAEI\x98\xC2h\x00\xD21\xE8*\xA2\xB2rW\xAF5R\xB8\xDDm\xB4n0\xE1\xD9\xDC@J\xA1\x86\xC3\b\xD8)q\x96\xED\x8A\xB50\x83\xC8J\xAB\xAD\xCA\xACI\x05\f\xFC\xE9\xD6A\xEF\xB5\t\xE7B\x1D\x18\fc\x1EM\x9BS\x83\xE8\xA6\x84c;\x87\xF5?e1\x97\x1C\xB9\xAA?\xDF@\xBB\xBCs\x9A\x18\x95\xFD<D\xB2\xA5\xE9\x8D\xC4\x93-\xABw\xBD\xF9\x9B\xA1w\xE0\a\r<\xB3\xCD\xD5\x00x\xD3V\x8CQ\xD1?g6\x99\xB6>\xBE\xBE\x05SB\bI\xA3\x8E\xAB\xDD\xA2Yl\xF3\xB5\xFC\x04\xC9\x8A\xB7`\xD9\x96\xC1\xFD=\xF4\xA8\xE4\xB3\xBC\xFCb\xDA\xC6\xF0\b\xD7\x89\xAABO\xAC\xB6\x1C\xC8\x8E\xD1\x80\x10Q\xFE\x00\x0F\x99\xAFB\xB5\xFBU\x8BJ\x1C\xEC'.".force_encoding("UTF-16LE") to encoding UTF-8 due to #<Encoding::InvalidByteSequenceError: "\xB8\xDD" on UTF-16LE>
      Error: Cannot collect packages for Puppet::Type::Package::ProviderWindows provider; "\xB8\xDD" on UTF-16LE 
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  glenn.sarti Glenn Sarti
                  Reporter:
                  tom.kishel Thomas Kishel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: