Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status: handle invalid utf-8 characters (#2109) #2134

Merged
merged 1 commit into from
Jun 14, 2018

Conversation

menghanl
Copy link
Contributor

@menghanl menghanl commented Jun 8, 2018

fixes #2078

A status with invalid utf-8 characters could still be created, but invalid characters will be replaced with Unicode replacement character before being sent out. Those bytes will still be percent encoded.

All details added to this invalid status will be dropped.

fixes grpc#2078

A status with invalid utf-8 characters could still be created, but invalid characters will be replaced with [Unicode replacement character](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character) before being sent out. Those bytes will still be percent encoded.

All details added to this invalid status will be dropped.
@menghanl
Copy link
Contributor Author

menghanl commented Jun 8, 2018

Same change as in #2109
Was reverted by #2127

The original change was good. See #2127 (comment)

@menghanl menghanl merged commit e218c92 into grpc:master Jun 14, 2018
@menghanl menghanl deleted the invalid_utf8 branch June 14, 2018 20:53
@menghanl menghanl added this to the 1.13 Release milestone Jun 19, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Dec 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic on non-utf-8 status messaage
2 participants