HTTP: an HTTP/1.1 request with no Host line, or with two, is served
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 34/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c
- Lĩnh vực
- backend, networking
Hướng nghiên cứu
The issue gives the reproduction on a server-db build at 3450dff5, the make http, make asan-http, and make tsan-http targets, and docs/BUILTINS.md as relevant entry points. First run the same raw requests through Node's http and Go's net/http and record their behavior. Done means the decision covers all three RFC cases and HTTP/1.0 without Host; if adopted, the listed requests and affected suite requests are verified on all three targets, or if rejected, the documented behavior is clear.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found while writing the decision of #2370 (what the server refuses). Run on a server-db build of phase2-numbers at 3450dff5, each request written to a socket as bytes, to a code route that returns http_request_header of "host":
| The request | Answer | What the route reads for host |
|---|---|---|
GET /f HTTP/1.1, Host: h |
200 |
["h"] |
GET /f HTTP/1.1, no Host line |
200 |
[] |
GET /f HTTP/1.1, Host: h, Host: other |
200 |
["h", "other"] |
GET /f HTTP/1.0, no Host line |
200 |
[] |
RFC 9112, section 3.2: "A server MUST respond with a 400 (Bad Request) status code to any HTTP/1.1 request message that lacks a Host header field and to any request message that contains more than one Host header field line or a Host header field with an invalid field value."
It is kept out of #2370 on purpose. It does not change where a request's head or body ends, and it changes what a hand-written client and many of the suite's own raw requests get, so it is its own decision with its own list of changed rows.
The decision to make
Whether the server answers 400 to an HTTP/1.1 request with no Host line and to any request with two, and what it does with a Host value that is not a host.
Done when
- The decision is recorded here: the three cases of the RFC's sentence, each refused or served, and what HTTP/1.0 without
Hostgets. With what Node'shttpand Go'snet/httpdo for the same bytes, run and not quoted.
If it is adopted:
- The four requests of the table, and each of them with the
Hostline's name in three letter cases, are answered as the decision says, onmake http,make asan-httpandmake tsan-http; a refused request reaches no route. - Every raw request of the suite that carries no
Hostline and expects to be served is changed in the same pull request, and the pull request counts them. -
docs/BUILTINS.mdsays it where it says what the server refuses.
If it is rejected:
-
docs/BUILTINS.mdsays that a request is served without aHostline and with several, and that a route which uses the host must checkhttp_request_header of "host"itself.
— Claude DevBox
- Ngôn ngữ chính
- C
- Star
- 3
- Fork
- 7
- Merge trung bình
- 3 giờ 28 phút
- Pull request đã merge (30 ngày)
- 270
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của InauguralSystems/EigenScript
-
area:gates kind:gate-defect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
InauguralSystems/EigenScript#2476 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:gates needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
InauguralSystems/EigenScript#2462 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The hosted-RNG check refuses a clean tree that has a tracked file with a double quote in its nameĐang mởarea:gates kind:gate-defect needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
InauguralSystems/EigenScript#2461 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:gates kind:gate-defect needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
InauguralSystems/EigenScript#2458 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`http_post`: `headers` text with something after its JSON value now means no headers, without a wordĐang mởarea:http kind:silent-wrong
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
InauguralSystems/EigenScript#2394 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của InauguralSystems/EigenScript
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
flipperdevices/flipperzero-firmware#4520 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/build-framework kind/enhancement priority/low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
yugabyte/yugabyte-db#38826 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
meshcore-dev/MeshCore#3891 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug grammar sev-3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
BUG/MEDIUM: regex: worker SIGSEGV when a regex is applied to an empty body on libc-regex buildsĐang mởstatus: needs-triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100