decoded_content fails to gunzip content if encountering unexpected end of file
まだ誰も着手していません。
評価
調査の方向性
HTTP/Message.pm の 299 行目付近から始め、decoded_content が IO::Uncompress::Gunzip::gunzip のエラーと報告されている x-died レスポンス条件をどのように処理するかを調べます。gzip フッターが欠落したレスポンスを再現し、通常の gzip デコードを維持したまま decoded_content が失敗しなくなっていることを確認します。
索引モデルが issue の本文から書いたものです。
説明
If the server doesn't send the last chunk which contains the gzip footer, the response fails to decode. All major browsers can handle this case fine and properly gunzip the content.
When tracking this down I found the response was a 200 OK, but LWP added this header:
x-died => "EOF when chunk header expected at .../5.20/lib/site_perl/5.20.0/Net/HTTP/Methods.pm line 525.",
And decoded_content was returning undef. When I added the raise_error option, I saw the error:
Can't gunzip content: unexpected end of file at .../lib/site_perl/5.20.0/HTTP/Message.pm line 299.
This should not cause a failure. And there does not appear to be anyway for end users to work around this without having to monkeypatch IO::Uncompress::Gunzip::gunzip.
- 主要言語
- Perl
- スター
- 32
- フォーク
- 62
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
libwww-perl/HTTP-Message のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
libwww-perl/HTTP-Message#228 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
libwww-perl/HTTP-Message#227 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
libwww-perl/HTTP-Message#216 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
libwww-perl/HTTP-Message#207 · コメント 1 件 ·
-
Decoding of deflate content-encoding doesn't respect max_body_size対応中かも @simbabque が 543 日前に担当しました。 オープン
libwww-perl/HTTP-Message#206 · コメント 1 件 · 担当者 1 名 ·
libwww-perl/HTTP-Message の issue をすべて見る
似ている issue
-
✏️ Editing - Tags
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
openfoodfacts/openfoodfacts-server#15127 ·
メンテナーはふだん 1 日以内に返信
-
FIDO2 (ecdsa-sk / ed25519-sk) ingress keys rejected: missing in get_supported_ssh_algorithms_listオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ovh/the-bastion#695 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
darold/pgFormatter#425 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
observablt-ci
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
elastic/golang-crossbuild#840 ·
メンテナーはふだん 1 日以内に返信