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

Puppet package provider on windows fails if non-UTF8 characters are in Uninstall products name value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.7.5
    • Fix Version/s: PUP 3.8.1
    • Component/s: Windows
    • Environment:

      Windows 7, 8, 8.1, 2008, 2012 with Puppet Agent 3.7.5

    • Template:

      Description

      We have a handful of windows nodes that are experiencing an issue with the package provider being able to enumerate current packages.

      "puppet resource package"
      or
      "package

      { 'PackageName': ensure=> absent, provider => windows}

      "

      Here's an example error:

      Could not prefetch package provider 'windows': U+00AE to IBM437 in conversion from UTF-16LE to UTF-8 to IBM437

      Running "wmic product get name" returns all of the names appropriately, and some have odd non-ascii characters in it. Removing the odd looking characters based products from the registry resolves the issue.

      Downgrading to 3.7.4 resolved the issue, which is odd, as i couldn't find where in the code path that a change was introduced that might cause this...

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  labs@vormetric.com Vormetric Labs
                • Votes:
                  5 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: