python / python/cpython

`urllib.request.getproxies_registry` does not return proxy exceptions (no_proxy)

オープン
#121,085 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

type-bug
主要言語
Python
スター
77.2k
フォーク
36k
PR マージ指標
PR 指標を取得中

説明

Bug report

Bug description:

On Windows

https://github.com/python/cpython/blob/b7a95dfee30aae171de47f98ed3b7d1cc08e5bd4/Lib/urllib/request.py#L2726-L2733

getproxies_environment() gets the proxy servers from environment variables HTTP_PROXY, HTTPS_PROXY, etc. and the proxy exceptions from NO_PROXY, returns a dict like {'http': '<URL>', 'no': '<FQDNs>'}; but getproxies_registry() gets only the proxy servers from Registry, returns a dict like {'http': '<URL>'}. These two ways to get proxies are inconsistent, a Windows user will get a proxy dict without exceptions list if he configures proxies in Settings or Internet Options (Registry).

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Lib/urllib/request.py の参照されている getproxies_registry() の行から開始し、その結果を getproxies_environment() と比較します。特に no_proxy エントリを確認してください。issue に記載されている Windows Registry のプロキシ設定を再現し、getproxies_registry() が環境ベースのパスと一貫したプロキシ例外を返すことを検証してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
networking
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。