(invisible) HTTPS_PROXY settings overrule explicit HTTP_PROXY settings
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- csharp
- 領域
- networking, tooling
調査の方向性
Start in ProxySettings.cs at private IWebProxy TryConfigureProxy(), especially the line checking _settings for the proxy setting name. Reproduce with https_proxy set without credentials alongside http_proxy and its credentials, then run libman restore. Done means explicit HTTP proxy credentials are honored and restore no longer produces the reported provider resolution errors.
索引モデルが issue の本文から書いたものです。
説明
Functional impact
If You configure only http_proxy + http_proxy.user + http_proxy.password, but the program gets a https_proxy URL from somewhere, Your settings will never be used and the restore function fails despite entering the right values.
I don't know how, but when debugging ProxySettings.cs, private IWebProxy TryConfigureProxy(), the line
if (_settings.TryGetValue(proxySettingName, out string proxyAddress)) (line 82)
returned a valid URL for https_proxy, even if it wasn't configured.
Therefore my own credentials were never used.
Minimal repro steps
-
configure:
https_proxy (with no credentials)
http_proxy
http_proxy.user
http_proxy.password -
Execute
libman restore -
You will get lots of errors, like
[LIB002]: The "jquery-easing@1.4.1" library could not be resolved by the "cdnjs" provider
Expected result
I would expect that the credentials I entered would make restore possible
I can understand that not every proxy needs user name + password
It would help, if at least in the documentation, the user would be instructed to set https_proxy + credentials first.
Unfortunately, the current documentation only mentions http_proxy settings.
- 主要言語
- C#
- スター
- 486
- フォーク
- 91
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aspnet/LibraryManager のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
aspnet/LibraryManager#824 · コメント 1 件 · リアクション 3 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
aspnet/LibraryManager#804 · リアクション 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 48/100
aspnet/LibraryManager#829 · コメント 1 件 · リアクション 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
aspnet/LibraryManager#820 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
aspnet/LibraryManager#808 · コメント 5 件 ·
aspnet/LibraryManager の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/vscode-azurefunctions#5197 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/microsoft-ui-reactor#1274 ·