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

Handle bad http headers in requests to YDB #1542

Conversation

jepett0
Copy link
Collaborator

@jepett0 jepett0 commented Feb 2, 2024

KIKIMR-19943

Modify THttpParser to detect headers without a colon and report an error in this case. Missing colon is detected for both THttpRequest and THttpResponse classes. For some reason, this hasn't been done before.

@jepett0 jepett0 force-pushed the KIKIMR-19943.uncaught_http_parsing_exception.1 branch from 6a13421 to 8fbf72d Compare February 5, 2024 14:48
Copy link

github-actions bot commented Feb 5, 2024

2024-02-05 14:49:30 UTC Pre-commit check for 1c5751d has started.
2024-02-05 14:49:31 UTC Build linux-x86_64-release-asan is running...
🟢 2024-02-05 14:58:22 UTC Build successful.
2024-02-05 14:58:30 UTC Tests are running...
🔴 2024-02-05 16:35:28 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14551 14433 0 15 71 32

@jepett0 jepett0 changed the title Catch bad http headers in requests to YDB monitoring Handle bad http headers in requests to YDB Feb 5, 2024
@jepett0 jepett0 marked this pull request as ready for review February 5, 2024 14:50
Copy link

github-actions bot commented Feb 5, 2024

2024-02-05 14:51:16 UTC Pre-commit check for 1c5751d has started.
2024-02-05 14:51:19 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-02-05 14:59:57 UTC Build successful.
2024-02-05 15:00:12 UTC Tests are running...
🔴 2024-02-05 16:25:01 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
58882 49588 0 3 9264 27

@jepett0 jepett0 requested a review from ijon February 5, 2024 15:03
@jepett0 jepett0 merged commit 68211df into ydb-platform:main Feb 5, 2024
4 of 6 checks passed
@vitstn vitstn mentioned this pull request Feb 6, 2024
vporyadke pushed a commit to vporyadke/ydb that referenced this pull request Feb 9, 2024
Header without a colon no longer crashes YDB
@starlinskiy starlinskiy mentioned this pull request Feb 12, 2024
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.

2 participants