| Facter 4 should scrub embedded null unicode code points from fact keys and values, because they cannot be stored in puppetdb, resuling in errors like the following when facts are stored in puppetdb: org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00 To reproduce:
|
PS C:\Users\Administrator> cat .\external\msi_info.yaml |
--- |
msi_info: |
"Alteryx 2020.2 x64 Server (Remove only)\0e\0\0\0\x11": |
version: 2020.2.3.27789 |
vendor: Alteryx |
installdate: '' |
PS C:\Users\Administrator> facter --external-dir external msi_info |
{ |
Alteryx 2020.2 x64 Server (Remove only)\u0000e\u0000\u0000\u0000\u0011 => { |
installdate => "", |
vendor => "Alteryx", |
version => "2020.2.3.27789" |
} |
} |
PS C:\Users\Administrator> facter --version |
4.3.1
|
|