aboutcode-org / aboutcode-org/vulnerablecode

Invalid version range in `apache_httpd` and `gentoo` advisory

未關閉
#2,387 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug Priority: high
主要語言
Python
星號
702
分支
328
平均合併
3 天 8 小時
30 天內合併 PR
3

描述

We should not create version range using empty constraint.

```python
'Cannot create AffectedPackage with invalid or unknown range: {'package': {'type': 'apache', 'namespace': '', 'name': 'httpd', 'version': '', 'qualifiers': '', 'subpath': ''}, 'affected_version_range': 'vers:apache/', 'fixed_version_range': None, 'introduced_by_commit_patches': [], 'fixed_by_commit_patches': []} with error:
Traceback (most recent call last):
File "/app/vulnerabilities/importer.py", line 564, in from_dict
VersionRange.from_string(affected_range) if affected_range else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/univers/version_range.py", line 139, in from_string
raise ValueError(f"{vers!r} specifies no version range constraints.")
ValueError: 'vers:apache/' specifies no version range constraints.
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。