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

Puppet::Settings::IniFile doesn't handle Unicode keys / sections properly - can cause `config set` / `config print` failures

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PUP 4.8.0
    • PUP 4.8.1
    • None
    • None

    Description

      While working on PUP-6188, it was discovered that puppet config set and puppet config print did not behave properly when using UTF-8 characters in the puppet.conf INI file.

      This was traced back to a problem in Puppet::Settings::IniFile and it's ability to properly parse key / value pairs. In particular, RegEx \w character class doesn't work for Unicode, but [[:word:]] does - see more details in PUP-6875

      Note that there might be 2 separate INI file parsers inside Puppet itself, and another in the INI module that might be worth investigating here.

      Attachments

        Issue Links

          Activity

            People

              glenn.sarti Glenn Sarti
              ethan Ethan Brown
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support