Skip to content

json transcoder: set decoded percent-encoded message as json response#15276

Merged
mattklein123 merged 1 commit intoenvoyproxy:mainfrom
Shikugawa:fix-15193
Mar 5, 2021
Merged

json transcoder: set decoded percent-encoded message as json response#15276
mattklein123 merged 1 commit intoenvoyproxy:mainfrom
Shikugawa:fix-15193

Conversation

@Shikugawa
Copy link
Copy Markdown
Member

Signed-off-by: Shikugawa rei@tetrate.io

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Commit Message: Close #15193. Fix not to set percent-encoded message as transcoded json response.
Additional Description:
Risk Level: Low
Testing: Unit
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

@Shikugawa Shikugawa requested a review from lizan March 3, 2021 07:23
{"content-type", "application/grpc"},
{"grpc-status", "5"},
{"grpc-message", "Resource%20not%20found"}};
EXPECT_EQ(Http::FilterHeadersStatus::Continue, filter_.encodeHeaders(response_headers, true));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you think these checks are necessary here? We are only verifying that percent-encoded grpc status has been decoded; the other checks have been performed elsewhere and imo only muddle this test.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think that these redundant tests aren't necessarily bad.

@mattklein123 mattklein123 merged commit aaaee77 into envoyproxy:main Mar 5, 2021
@Shikugawa Shikugawa deleted the fix-15193 branch March 6, 2021 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

grpc status details are percent-encoded when mapped to json

5 participants