ScoringSystem.get() and compute() return NotImplementedError instead of raising it
維護者通常 5 天內回覆
評估
研究方向
閱讀 issue 中提到的三個方法對應的 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 小時
- 30 天內合併 PR
- 2
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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 天內回覆