pulumi/pkg/resource/provider
Levi Blackstone 19a113de7a
Handle invalid UTF-8 characters before RPC calls (#4816)
Several users reported cases where error messages would
cause a panic if they contained accented characters. I wasn't
able to reproduce this failure locally, but tracked down the
panic to logging gRPC calls. The Message field is typed as
a string, which requires all of the characters to be valid UTF-8.

This change runs each log string through the strings.ToValidUTF8
function, which will replace any invalid characters with the
"unknown" character. This should prevent the the logger from
panicking.
2020-06-17 13:30:59 -06:00
..
host.go Handle invalid UTF-8 characters before RPC calls (#4816) 2020-06-17 13:30:59 -06:00
main.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00