ScoringSystem.get() and compute() return NotImplementedError instead of raising it
メンテナーはふだん 5 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 83/100
調査の方向性
issueで指定された3つのメソッドについて vulnerabilities/severity_systems.py を読み、続いて列挙された呼び出し元を調べて、NotImplementedError をどのように処理しているか確認してください。これらのメソッドが想定どおり例外を送出するように変更し、重大度スコアリングと未サポートのシステムに関する関連テストを実行してください。未サポートのシステムがスキップされ、例外クラスが severity_vectors に追加されない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
ScoringSystem.compute(), ScoringSystem.get(), and EPSSScoringSystem.compute() in vulnerabilities/severity_systems.py (lines 39, 42, 230) use return NotImplementedError instead of raise NotImplementedError.
All four callers of ScoringSystem.get() (vulnerabilities/models.py:493-504, vulnerabilities/views.py:548-557 and 711-720, and vulnerabilities/api.py:268-276) catch NotImplementedError. Because get() returns the exception class (which is truthy), unsupported scoring systems bypass except NotImplementedError and append <class 'NotImplementedError'> to severity_vectors.
Expected behavior: ScoringSystem.compute(), ScoringSystem.get(), and EPSSScoringSystem.compute() raise NotImplementedError so callers skip unsupported systems as intended.
- 主要言語
- Python
- スター
- 722
- フォーク
- 364
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aboutcode-org/vulnerablecode のほかの issue
-
curl importer keeps only the first fixed version (166 missing across 66 advisories)対応中かも @Jean-Regis-M が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
aboutcode-org/vulnerablecode#2546 ·
メンテナーはふだん 5 日以内に返信
-
Elixir Security importer drops affected packages when an advisory lists no patched or unaffected versions対応中かも @sanchit955 が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aboutcode-org/vulnerablecode#2540 ·
メンテナーはふだん 5 日以内に返信
-
ApacheTomcatImporterPipeline truncates milestone fixed versions (e.g. 11.0.0-M6 -> 11.0.0)対応中かも @nikolya-ctrl が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
aboutcode-org/vulnerablecode#2533 ·
メンテナーはふだん 5 日以内に返信
-
`gitlab_importer_v2` pipeline failing due to malformed YAML file対応中かも @Gowri213 が 6 日前に担当しました。 オープンbug Pipeline: Failure Priority: high
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
aboutcode-org/vulnerablecode#2523 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
Affected-by-advisories v2 page returns 500 for a purl with no matching package対応中かも @sanchit955 が 14 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
aboutcode-org/vulnerablecode#2501 ·
メンテナーはふだん 5 日以内に返信
aboutcode-org/vulnerablecode の issue をすべて見る
似ている issue
-
difficulty:1 documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MakazhanAlpamys/Soup#3533 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
onyx-dot-app/onyx#18730 ·
メンテナーはふだん 1 日以内に返信
-
namespace team:operations
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
EclipseFdn/open-vsx.org#16509 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
langflow-ai/langflow#16689 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信