Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7143

dsc_lite : Support UTF8 properly in ERB template creation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: dsc_lite
    • Labels:
    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      • Manual verification OR
      • A new "integration" test that exercises the system in a way that demonstrates Unicode support works properly
    • Epic Link:
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows 2018-06-06, Windows 2018-06-13
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Like IIS (MODULES-6869), DSC (MODULES-2310) and other modules, an ERB template is used to create the PowerShell code that is then parsed / executed by the powershell_manager helper.

      The fix is a couple of lines of code, as seen in https://github.com/puppetlabs/puppetlabs-dsc/pull/351/files

      The code should be changed at https://github.com/puppetlabs/puppetlabs-dsc_lite/blob/2a2ba134c5e50807649ad689271db54b39ddce6f/lib/puppet/provider/base_dsc_lite/powershell.rb#L212 and any other spots that may call ERB.new similarly.

        Attachments

          Activity

            People

            Assignee:
            ethan Ethan Brown
            Reporter:
            ethan Ethan Brown
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support