Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: replace invalid utf-8 sequences in agent logs#13436

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
spikecurtis merged 2 commits intomainfromutf8logs
Jun 10, 2024
Merged

Conversation

kylecarbs
Copy link
Member

Fixes#13433.

@kylecarbskylecarbs self-assigned thisJun 3, 2024
Copy link
Contributor

@spikecurtisspikecurtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This should have a regression test

@MrPeacockNLB
Copy link
Contributor

MrPeacockNLB commentedJun 3, 2024
edited
Loading

Is it possible to backport this to stable branch? We are facing this error in production too. Coder Versionv2.10.3

return&proto.Log{
CreatedAt:timestamppb.New(log.CreatedAt),
Output:log.Output,
Output:strings.ToValidUTF8(log.Output,""),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think we should probably replace invalid utf-8 with something, so it's obvious data is being deleted.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should we get cute and replace with something like ❌ or 😞 or 🤬, or just something like<<invalid UTF-8>>?

Signed-off-by: Spike Curtis <spike@coder.com>
@spikecurtis
Copy link
Contributor

Decided to just be bold and add the regression test and replacement with ❌ ---@coadler@kylecarbs revert me if you disagree.

@spikecurtisspikecurtis requested a review fromcoadlerJune 7, 2024 10:43
@spikecurtisspikecurtis merged commit7c081dc intomainJun 10, 2024
@spikecurtisspikecurtis deleted the utf8logs branchJune 10, 2024 11:27
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 10, 2024
@spikecurtis
Copy link
Contributor

Is it possible to backport this to stable branch? We are facing this error in production too. Coder Versionv2.10.3

@MrPeacockNLB I think our policy for fixes unrelated to security is to backport to stable, which is 2.11 as of today.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@spikecurtisspikecurtisspikecurtis left review comments

+1 more reviewer

@coadlercoadlercoadler approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees

@kylecarbskylecarbs

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Coder agent crashes when script log contains invalid UTF-8
4 participants
@kylecarbs@MrPeacockNLB@spikecurtis@coadler

[8]ページ先頭

©2009-2025 Movatter.jp