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

fix marshaling error on invalid label value #9828

Merged
merged 3 commits into from
Nov 4, 2024
Merged

Conversation

replay
Copy link
Contributor

@replay replay commented Nov 4, 2024

This makes sure that when a label value fails validation due to invalid UTF-8 characters we don't return these invalid characters in the error, because including them can break the rendering of the error that should be returned.

@replay replay requested a review from a team as a code owner November 4, 2024 16:15
Signed-off-by: Mauro Stettler <[email protected]>
Signed-off-by: Mauro Stettler <[email protected]>
Copy link
Contributor

@andyasp andyasp left a comment

Choose a reason for hiding this comment

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

LGTM

@replay replay merged commit c7ce088 into main Nov 4, 2024
29 checks passed
@replay replay deleted the fix-invalid-string-error branch November 4, 2024 16:46
andyasp pushed a commit that referenced this pull request Nov 4, 2024
* fix marshaling error on invalid label value

Signed-off-by: Mauro Stettler <[email protected]>

* only return label and metric

Signed-off-by: Mauro Stettler <[email protected]>

* changelog

Signed-off-by: Mauro Stettler <[email protected]>

---------

Signed-off-by: Mauro Stettler <[email protected]>
(cherry picked from commit c7ce088)

Co-authored-by: Mauro Stettler <[email protected]>
aknuds1 pushed a commit that referenced this pull request Nov 5, 2024
* fix marshaling error on invalid label value

Signed-off-by: Mauro Stettler <[email protected]>

* only return label and metric

Signed-off-by: Mauro Stettler <[email protected]>

* changelog

Signed-off-by: Mauro Stettler <[email protected]>

---------

Signed-off-by: Mauro Stettler <[email protected]>
aknuds1 added a commit that referenced this pull request Nov 5, 2024
* fix marshaling error on invalid label value



* only return label and metric



* changelog



---------

Signed-off-by: Mauro Stettler <[email protected]>
Co-authored-by: Mauro Stettler <[email protected]>
aknuds1 pushed a commit that referenced this pull request Nov 5, 2024
* fix marshaling error on invalid label value

Signed-off-by: Mauro Stettler <[email protected]>

* only return label and metric

Signed-off-by: Mauro Stettler <[email protected]>

* changelog

Signed-off-by: Mauro Stettler <[email protected]>

---------

Signed-off-by: Mauro Stettler <[email protected]>
aknuds1 pushed a commit that referenced this pull request Nov 5, 2024
* fix marshaling error on invalid label value

Signed-off-by: Mauro Stettler <[email protected]>

* only return label and metric

Signed-off-by: Mauro Stettler <[email protected]>

* changelog

Signed-off-by: Mauro Stettler <[email protected]>

---------

Signed-off-by: Mauro Stettler <[email protected]>
aknuds1 added a commit that referenced this pull request Nov 5, 2024
* fix marshaling error on invalid label value



* only return label and metric



* changelog



---------

Signed-off-by: Mauro Stettler <[email protected]>
Co-authored-by: Mauro Stettler <[email protected]>
aknuds1 added a commit that referenced this pull request Nov 5, 2024
* fix marshaling error on invalid label value



* only return label and metric



* changelog



---------

Signed-off-by: Mauro Stettler <[email protected]>
Co-authored-by: Mauro Stettler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants