HTTP header list parsing does not accept empty list elements
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- scala
- 領域
- backend, networking
調査の方向性
Start with the list parsing rules used by HttpHeader.parse and compare them with Range’s existing handling of leading empty elements. Check downstream handling of unrecognized Connection headers, especially whether close is honored. Done when leading, interior, and trailing empty elements parse as required across list headers, the all-empty case is decided for required lists, and tests cover these cases.
索引モデルが issue の本文から書いたものです。
説明
RFC 9110 §5.6.1 (previously RFC 7230 §7) says a recipient must parse and ignore a reasonable number of empty list elements. Most header list rules use oneOrMore(...).separatedBy(listSep) or the zeroOrMore equivalent, which does not allow them, so these headers are not parsed into their modeled types and stay RawHeaders:
| Header | Value |
|---|---|
Cache-Control |
no-store,, public |
Cache-Control |
, no-store, public |
Cache-Control |
no-store, public, |
Connection |
close,, foo |
Allow |
GET,, POST |
If-None-Match |
"a",, "b" |
Accept |
text/plain,, text/html |
These were found by parsing each value with HttpHeader.parse. They are a sample, and other headers using the same rules are likely to behave the same way. Range already tolerates leading empty elements with zeroOrMore(ws(',')).
Things to look at:
- Interior, leading and trailing empty elements all need handling, so this probably means changing each list rule or adding a shared helper, not only
listSep. - Decide how a list with no elements at all (for example
Cache-Control: ,) should behave for headers that require at least one. - Check what happens downstream when a header stays a
RawHeader, starting withConnection, since aclosethat is not recognised could change connection handling.
Follow-up to #1395, which fixes whitespace before the list separator but does not change how empty elements are handled.
- 主要言語
- Scala
- スター
- 199
- フォーク
- 57
- 平均マージ
- 1日 20時間
- マージ済み PR(30日)
- 54
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/pekko-http のほかの issue
-
HTTP/2 client has no frame-type throttle対応中かも @pjfanning が 5 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
apache/pekko-http#1393 ·
メンテナーはふだん 1 日以内に返信
-
Support the dcz (dictionary-compressed zstd) content coding from RFC 9842対応中かも @pjfanning が 1 日前に担当しました。 オープンenhancement
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
apache/pekko-http#1392 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
apache/pekko-http#1273 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
apache/pekko-http#1249 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
apache/pekko-http#1248 ·
メンテナーはふだん 1 日以内に返信
apache/pekko-http の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
requires-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
apache/datafusion-comet#7559 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
propensive/soundness#2438 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ergoplatform/ergo#2918 ·
メンテナーはふだん 2 日以内に返信
-
Coach photos should fit to coach widget対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lichess-org/lila#22440 ·
メンテナーはふだん 1 日以内に返信