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

[balsa] Verify URL. #22040

Merged
merged 4 commits into from
Jul 18, 2022
Merged

[balsa] Verify URL. #22040

merged 4 commits into from
Jul 18, 2022

Conversation

bencebeky
Copy link
Contributor

This fixes Http1ServerConnectionImplTest.Http11InvalidRequest, and adds
extensive testing to the URL validator that both http-parser and the new
isUrlValid in BalsaParser pass.

Tested by patching in #22039 and running

bazel test //test/common/http/http1:codec_impl_test
--test_arg=--runtime-feature-override-for-tests=envoy.reloadable_features.http1_use_balsa_parser

Tracking issue: #21245

Signed-off-by: Bence Béky bnc@google.com

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

This fixes Http1ServerConnectionImplTest.Http11InvalidRequest, and adds
extensive testing to the URL validator that both http-parser and the new
isUrlValid in BalsaParser pass.

Tested by patching in #22039 and running

bazel test //test/common/http/http1:codec_impl_test
  --test_arg=--runtime-feature-override-for-tests=envoy.reloadable_features.http1_use_balsa_parser

Tracking issue: #21245

Signed-off-by: Bence Béky <bnc@google.com>
Signed-off-by: Bence Béky <bnc@google.com>
@bencebeky
Copy link
Contributor Author

/assign @diannahu @birenroy

Dianna and Biren: PTAL.

@bencebeky bencebeky marked this pull request as ready for review July 6, 2022 18:10
@wrowe
Copy link
Contributor

wrowe commented Jul 7, 2022

/assign @yanavlasov

diannahu
diannahu previously approved these changes Jul 8, 2022
Copy link
Contributor

@diannahu diannahu left a comment

Choose a reason for hiding this comment

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

Very nice, clean code and great tests!

source/common/http/http1/balsa_parser.cc Show resolved Hide resolved
test/common/http/http1/codec_impl_test.cc Outdated Show resolved Hide resolved
Signed-off-by: Bence Béky <bnc@google.com>
diannahu
diannahu previously approved these changes Jul 8, 2022
Copy link
Contributor

@diannahu diannahu left a comment

Choose a reason for hiding this comment

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

That char bitmap o__O

This change looks great!

yanavlasov
yanavlasov previously approved these changes Jul 12, 2022
@yanavlasov
Copy link
Contributor

@bencebeky needs merge and fixing merge conflicts.

@yanavlasov
Copy link
Contributor

/wait

Signed-off-by: Bence Béky <bnc@google.com>
@bencebeky bencebeky dismissed stale reviews from yanavlasov and diannahu via 04a1d93 July 12, 2022 15:39
@bencebeky
Copy link
Contributor Author

Thank you for the review. I resolved the merge conflicts, and all checks have passed. This PR seems to be ready to be merged.

@bencebeky
Copy link
Contributor Author

Ping @wrowe. Thank you.

@yanavlasov yanavlasov merged commit a8d40c2 into envoyproxy:main Jul 18, 2022
@bencebeky bencebeky deleted the url branch July 19, 2022 11:22
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.

6 participants