Extraction of authorization from URL needs to happen sooner [rt.cpan.org #89968]
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- perl
- 領域
- networking
調査の方向性
まず HTTP::Request と、issue に記載されている既存の LWP::UserAgent の処理を読み、次に GET が URL からリクエストを構築する方法を確認します。認証情報が Authorization ヘッダーに抽出され、リクエスト行から削除されて、HTTP::Request->as_string が示されている形式を生成するようになれば、変更は完了です。
索引モデルが issue の本文から書いたものです。
説明
Migrated from rt.cpan.org#89968 (status was 'new')
Requestors:
From [email protected] on 2013-11-01 22:12:56:
The HTTP::Request + LWP::UserAgent pair of modules correctly handles the case
my $resp = $ua->request( GET "http://user:pass@host/path" );
but despite that the HTTP basic auth header is a property of the HTTP::Request itself, this appears to be being handled entirely by LWP rather than HTTP::Request.
It would be more useful for other HTTP useragents which are based on HTTP::Message objects if this were handled within HTTP::Request itself. I feel that therefore the behaviour ought to be somewhere that after
my $req = GET "http://user:pass@host/path";
We now have the Authorization header correctly set in $req and the user:pass@ removed from the embedded URL in the first request line. Ideally then at this point
print $req->as_string;
should yield
GET /path HTTP/1.1
Host: host
Authorization: Basic dXNlcjpwYXNz
...
--
Paul Evans
From [email protected] on 2013-11-06 17:06:11:
For context see also
https://rt.cpan.org/Ticket/Display.html?id=89775
--
Paul Evans
- 主要言語
- 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 ·
-
Range length wrong when an abbreviated range end contains a 0 (`pages = {315-20}` gives `\range{pages}{11}`)対応中かも @plk が今日担当しました。 オープンBug fixedindev
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
observablt-ci
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
elastic/golang-crossbuild#840 ·
メンテナーはふだん 1 日以内に返信