aboutcode-org / aboutcode-org/vulnerablecode

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

オープン
#2,387 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug Priority: high
主要言語
Python
スター
702
フォーク
328
平均マージ
3日 8時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。