aboutcode-org / aboutcode-org/vulnerablecode
Invalid version range in `apache_httpd` and `gentoo` advisory
- 主要语言
- 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 还没有评估数据。