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(grpc): empty message cannot be unframed #10836

Merged
merged 2 commits into from
May 15, 2023
Merged

Conversation

StarlightIbuki
Copy link
Contributor

Summary

We found an issue when testing the fix of #10801. When a service responds with a message with all default value fields, the JSON response would be totally empty.

The reason for this issue is that we assume a message to be at least of length 1 when unframing.

Removing this restriction (a message can be of length 0) fixes this issue.

Checklist

Issue reference

Fix FTI-5054
Fix #10802

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@chronolaw chronolaw left a comment

Choose a reason for hiding this comment

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

Should we cherry-pick this fix into 3.3?

@StarlightIbuki
Copy link
Contributor Author

Should we cherry-pick this fix into 3.3?

I guess not. This one is not that critical (in rare cases people send empty messages), and we're already releasing 3.3.

@StarlightIbuki StarlightIbuki force-pushed the fix/grpc-empty-message branch from 1cff820 to 804fb15 Compare May 12, 2023 02:54
@windmgc windmgc merged commit 47ab666 into master May 15, 2023
@windmgc windmgc deleted the fix/grpc-empty-message branch May 15, 2023 03:18
lhanjian pushed a commit that referenced this pull request Dec 23, 2024
* fix(active-tracing): add global configuration switch

* Apply suggestions from code review

Co-authored-by: Vinicius Mignot <vinicius.mignot@gmail.com>

---------

Co-authored-by: Vinicius Mignot <vinicius.mignot@gmail.com>
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.

[gRPC-Gateway] Message with all default values is not correctly handled
4 participants