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

Puppet merges two users in different encodings into one

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.10.2
    • Component/s: None
    • Template:
    • Team:
      Agent
    • Story Points:
      5
    • Sprint:
      Agent 2017-05-31
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      Prior to Puppet 4.10.2/5.0.0, if a user with non-ascii characters existed on the system in a non-utf8 encoding, and puppet managed the same user in a utf-8 encoding, puppet resource user would ignore one of the users and not present it as being on the system. Now puppet resource user will correctly list both users, separately, as existing on the system.
      Show
      Prior to Puppet 4.10.2/5.0.0, if a user with non-ascii characters existed on the system in a non-utf8 encoding, and puppet managed the same user in a utf-8 encoding, puppet resource user would ignore one of the users and not present it as being on the system. Now puppet resource user will correctly list both users, separately, as existing on the system.
    • QA Risk Assessment:
      Automate
    • QA Risk Assessment Reason:
      We should try to add automation for this

      Description

      If the user José bytes [74, 111, 115, 233] LATIN-1 and the user José bytes [74, 111, 115, 195, 169] UTF-8 both exist on the system, Puppet will pick whichever one is read in from the system first and ignore the other one silently without warning the user which is getting managed.

      Additionally, if two resources in different encodings do make it through the system when gathered by `puppet resource`, that application can explode because of incompatible encodings

      Finally, if we get resources in binary encoding we may not be able to convert them to UTF-8 without first expecting them as encoding.default_external, so we might as well do that.

      This, among other issues and potential improvements need addressed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              moses Moses Mendoza
              QA Contact:
              Eric Delaney
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support