Skip to content

lua: Fix printing Lua string containing hex characters#17994

Merged
mattklein123 merged 20 commits intoenvoyproxy:mainfrom
Patrick0308:fix-luaSetBytes
Sep 15, 2021
Merged

lua: Fix printing Lua string containing hex characters#17994
mattklein123 merged 20 commits intoenvoyproxy:mainfrom
Patrick0308:fix-luaSetBytes

Conversation

@Patrick0308
Copy link
Copy Markdown
Contributor

@Patrick0308 Patrick0308 commented Sep 6, 2021

Commit Message: Fix printing Lua string containing hex characters.
Additional Description:
Risk Level: Low
Testing: Unit test
Docs Changes: N/A
Release Notes: Added

Fixes #17975

Signed-off-by: Patrick patrickjiang0530@gmail.com

@repokitteh-read-only
Copy link
Copy Markdown

Hi @Patrick0308, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #17994 was opened by Patrick0308.

see: more, trace.

Signed-off-by: chaojiang <chao.jiang@longbridge.sg>
Signed-off-by: Patrick <patrickjiang0530@gmail.com>
Signed-off-by: Patrick <patrickjiang0530@gmail.com>
@Patrick0308 Patrick0308 changed the title lua: fix string be truncated (WIP) lua: fix string be truncated Sep 6, 2021
@Patrick0308
Copy link
Copy Markdown
Contributor Author

@wbpcode PTAL

@wbpcode
Copy link
Copy Markdown
Member

wbpcode commented Sep 6, 2021

/assign

Copy link
Copy Markdown
Member

@wbpcode wbpcode left a comment

Choose a reason for hiding this comment

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

Thanks. This is looks great. And I added some comments.

Signed-off-by: Patrick <patrickjiang0530@gmail.com>
@Patrick0308
Copy link
Copy Markdown
Contributor Author

@wbpcode PTAL

@Patrick0308 Patrick0308 requested a review from wbpcode September 7, 2021 10:06
Copy link
Copy Markdown
Member

@wbpcode wbpcode left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks for your contribution. Just some new comments. And we also need to format codes with tools/code_format/check_format.py fix.

@wbpcode
Copy link
Copy Markdown
Member

wbpcode commented Sep 7, 2021

In addition, try not to use force push. Force push is not friendly to reviewers 🤣 . Thanks.

@Patrick0308
Copy link
Copy Markdown
Contributor Author

@wbpcode Sorry, I pushed force because I forget sign off.

Signed-off-by: Patrick <patrickjiang0530@gmail.com>
Signed-off-by: Patrick <patrickjiang0530@gmail.com>
@Patrick0308 Patrick0308 requested a review from wbpcode September 7, 2021 11:32
Signed-off-by: Patrick <patrickjiang0530@gmail.com>
Signed-off-by: Patrick <patrickjiang0530@gmail.com>
@Patrick0308
Copy link
Copy Markdown
Contributor Author

@wbpcode PTAL

@wbpcode
Copy link
Copy Markdown
Member

wbpcode commented Sep 8, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #17994 (comment) was created by @wbpcode.

see: more, trace.

Signed-off-by: Patrick <patrickjiang0530@gmail.com>
@dio
Copy link
Copy Markdown
Member

dio commented Sep 8, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #17994 (comment) was created by @dio.

see: more, trace.

@Patrick0308
Copy link
Copy Markdown
Contributor Author

Sorry, I made a mistake when resolving conflict. It requested review from many people.

@dio
Copy link
Copy Markdown
Member

dio commented Sep 13, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #17994 (comment) was created by @dio.

see: more, trace.

Copy link
Copy Markdown
Member

@dio dio left a comment

Choose a reason for hiding this comment

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

Thank you!

@wbpcode
Copy link
Copy Markdown
Member

wbpcode commented Sep 15, 2021

Thanks. Waiting @envoyproxy/senior-maintainers for a second review.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123 mattklein123 merged commit 329b429 into envoyproxy:main Sep 15, 2021
@Patrick0308 Patrick0308 deleted the fix-luaSetBytes branch October 9, 2021 11:16
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.

Lua filter's bodyBuffer be truncated when contain two-digit hexadecimal

4 participants