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

PB-932: Avoid UTF-8 truncation in logging #459

Merged
merged 1 commit into from
Sep 16, 2024
Merged

PB-932: Avoid UTF-8 truncation in logging #459

merged 1 commit into from
Sep 16, 2024

Conversation

ltshb
Copy link
Contributor

@ltshb ltshb commented Sep 12, 2024

The request body is in utf-8 which needs either 1 byte or 2 bytes per character
depending on the character, so we need to decode first before truncating otherwise
we might truncate in the middle of a utf-8 character and it will break the decode.

The request body is in utf-8 which needs either 1 byte or 2 bytes per character
depending on the character, so we need to decode first before truncating otherwise
we might truncate in the middle of a utf-8 character and it will break the decode.
@ltshb ltshb requested a review from boecklic September 12, 2024 13:28
@github-actions github-actions bot added the bug label Sep 12, 2024
@ltshb
Copy link
Contributor Author

ltshb commented Sep 12, 2024

@boecklic should I do this fix on develop or on master and deploy direclty ?

@boecklic
Copy link
Contributor

@boecklic should I do this fix on develop or on master and deploy direclty ?

If you don't mind I'd create a normal minor release and deploy all the way to prod

@ltshb ltshb requested a review from benschs September 16, 2024 03:57
@ltshb ltshb merged commit 674b1ab into develop Sep 16, 2024
3 checks passed
@ltshb ltshb deleted the bug-PB-932-log branch September 16, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants