aboutcode-org / aboutcode-org/vulnerablecode

apache_kafka_importer_v2 import error

未关闭
#2,280 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
702
派生
328
平均合并
3 天 8 小时
30 天内合并 PR
3

描述

Importing data using apache_kafka_importer_v2

```
INFO 2026-04-24 15:04:19.826634 UTC Pipeline [ApacheKafkaImporterPipeline] starting
INFO 2026-04-24 15:04:19.826728 UTC Step [fetch] starting
INFO 2026-04-24 15:04:19.826765 UTC Fetch `https://kafka.apache.org/community/cve-list/`
INFO 2026-04-24 15:04:20.560074 UTC Step [fetch] completed in 1 seconds
INFO 2026-04-24 15:04:20.560229 UTC Step [collect_and_store_advisories] starting
INFO 2026-04-24 15:04:20.561545 UTC Collecting 23 advisories
INFO 2026-04-24 15:04:20.563883 UTC Pipeline failed
INFO 2026-04-24 15:04:20.563969 UTC Running [on_failure] tasks
INFO 2026-04-24 15:04:20.564017 UTC Completed [on_failure] tasks in 0 seconds
'Apache Kafka Clients (kafka' is not a valid

Traceback:
File "/home/ubuntu/vulnerablecode/vulnerabilities/pipelines/__init__.py", line 111, in execute
step(self)
File "/home/ubuntu/vulnerablecode/vulnerabilities/pipelines/__init__.py", line 327, in collect_and_store_advisories
for advisory in progress.iter(self.collect_advisories()):
File "/home/ubuntu/vulnerablecode/venv/lib/python3.12/site-packages/aboutcode/pipeline/__init__.py", line 314, in iter
for item in iterator:
File "/home/ubuntu/vulnerablecode/vulnerabilities/pipelines/v2_importers/apache_kafka_importer.py", line 70, in collect
_advisories
yield self.to_advisory_data(table)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/vulnerablecode/vulnerabilities/pipelines/v2_importers/apache_kafka_importer.py", line 93, in to_advi
sory_data
affected_constraints = parse_range(raw_affected)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/vulnerablecode/vulnerabilities/pipes/apache_kafka.py", line 63, in parse_range
version=SemverVersion(lhs.strip()),
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 7, in __init__
self.__attrs_post_init__()
File "/home/ubuntu/vulnerablecode/venv/lib/python3.12/site-packages/univers/versions.py", line 87, in __attrs_post_init
__
raise InvalidVersion(f"{self.string!r} is not a valid {self.__class__!r}")
Importing data using nvd_importer_v2
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。