netrc.py strips away valid backslash characters from tokens
オープン
まだ誰も着手していません。
stdlib
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Commit https://github.com/python/cpython/commit/15409c720be0503131713e3d3abc1acd0da07378 to close PR https://github.com/python/cpython/pull/26330 introduced a regression in the stdlib netrc.py that causes backslashes to be stripped out of tokens. As an example, the password extracted from the following .netrc file
machine my.host.com login user password mypass\word
will be mypassword instead of mypass\word. Same behavior would happen for login or account tokens.
Your environment
- CPython versions tested on: >=3.11
- PR: gh-99088
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
影響を受けるエントリポイントは標準ライブラリの netrc.py です。commit 15409c720be0503131713e3d3abc1acd0da07378 で導入されたトークン解析を、ここに示した .netrc のサンプルと比較してください。サンプルを回帰チェックとして使用し、login、account、password トークンが有効なバックスラッシュを保持することを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- authentication
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 25/100