URLDataTypeSerializer treats mixed-case HTTP(S) schemes as local paths
メンテナーはふだん 2 日以内に返信
@akhil9tiet がすでに取り組んでいます。
2026年11月3日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
調査の方向性
まず URLDataTypeSerializer クラスと、URLかローカルパスかを判定する大文字小文字を区別する接頭辞チェックから始めてください。合成値 HTTPS://example.invalid/é?q=☃ をハッシュ処理と、インメモリSQLiteメモリ上の add_seeds_to_memory_async に通して再現します。http と https が大文字小文字を区別せずに一致し、ハッシュ入力には元のURLの表記が保持され、ローカルパスは従来どおり動作すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
URLDataTypeSerializer uses a case-sensitive prefix check to decide whether a value is a URL or a local path. HTTPS://... and HtTp://... are valid HTTP(S) URLs, but are classified as files. Hashing and public seed ingestion then raise FileNotFoundError.
Steps/Code to Reproduce
Use a SQLiteMemory and URLDataTypeSerializer with the synthetic URL HTTPS://example.invalid/é?q=☃, then hash it or pass it to add_seeds_to_memory_async. No URL needs to be fetched.
Expected Results
Recognize http and https schemes case-insensitively while preserving the original URL spelling and hash input; continue handling local paths normally.
Actual Results
Lowercase https:// hashes and ingests successfully. Uppercase and mixed-case schemes set data_on_disk=true; both operations raise FileNotFoundError for the URL string treated as a path.
Screenshots
N/A. SDK and local SQLite reproduction; no external URL was fetched.
Versions
Linux; Python 3.12.3; PyRIT 1.2.0.dev0 at revision 01ce6ca66a315770b36c7dca1f320668c0d92d7c. Real SDK and in-memory SQLite; no network fetch or model call.
- 主要言語
- Python
- スター
- 4.7k
- フォーク
- 1k
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 465
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/PyRIT のほかの issue
-
Scenario objective previews can split supplementary Unicode during truncation対応中かも @Aadithya-kl が今日担当しました。 オープンBug: triage help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/PyRIT#3870 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Parameter required status is lost after wire round-trip対応中かも @its-amann が今日担当しました。 オープンBug: triage help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
microsoft/PyRIT#3854 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
BUG: LLMGenericTextConverter identifier changes between processes for set-valued template parametersオープンBug: triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
BUG: SelfAskGeneral scorers leave their output keys out of the identifier対応中かも @Hrushikesh-ramilla が 1 日前に担当しました。 オープンBug: triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
GUI rejects valid empty-string SearchReplaceConverter settings, preventing deletion converters対応中かも @Darshika140 が 2 日前に担当しました。 オープンhelp wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/PyRIT#3749 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
microsoft/PyRIT の issue をすべて見る
似ている issue
-
bug ready-for-dev
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
OpenHands/extensions#897 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
tensorflow/datasets#11253 ·
メンテナーはふだん 1 日以内に返信
-
fix(core): a config section with all keys commented out crashes startup対応中かも @Aryanbhargava18 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
kubeflow/mcp-server#512 ·
メンテナーはふだん 1 日以内に返信
-
Stop trusting the compromised eMudhra CA certificates対応中かも @anth-volk が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
PolicyEngine/uk-triple-lock#54 ·
メンテナーはふだん 1 日以内に返信
-
DBFS append mode silently overwrites existing files対応中かも @IlyaKhalafi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
fsspec/filesystem_spec#2429 ·
メンテナーはふだん 1 日以内に返信