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

Work around Ruby string encoding behavior exercised during registry calls in win32/registry

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.0.0
    • Component/s: Windows
    • Labels:
    • Template:
    • Story Points:
      3
    • Sprint:
      Windows 2015-01-28, Windows 2015-02-11

      Description

      There is a lot of encoding issues surrounding the use of win32/registry.rb from Ruby v2.1 and above. Prior to 2.1, there was some craziness, but it didn't affect us in a negative way. The recommendation is that we stop using that and instead make the calls to the registry directly using FFI.

      Quite a bit of background is on the PR for PUP-3779 - https://github.com/puppetlabs/puppet/pull/3459#discussion_r22838455

      The issues surrounding ruby's win32/registry.rb could also impact:

      • registry module
      • Any custom facts that make registry calls

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              rob Rob Reynolds
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support