In some cases, looking up non fully qualified user names (just 'name' instead of 'DOMAIN name') on Windows does not work. In this case, Puppet Agent fails with Error: Failed to apply catalog: undefined method `bytesize' for nil:NilClass.
In some cases, looking up non fully qualified user names (just '*name*' instead of '*DOMAIN\\* *name*') on Windows does not work. In this case, Puppet Agent fails with *Error: Failed to apply catalog: undefined method `bytesize' for nil:NilClass*.
Retrieving the current user name SID on Windows was causing Puppet to fail in certain scenarios where the user was from a secondary domain controller. A fallback mechanism was implemented to use the fully qualified domain name for lookup.