aboutcode-org / aboutcode-org/vulnerablecode

Incorrect PURL found while running export management command

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

描述

`org.webjars.npm:jquery` should be a maven PURL, not a nuget PURL.

```python
Failed to process Package pkg:nuget/org.webjars.npm:jquery@3.5.0: ValueError('Invalid purl \'pkg:nuget/org.webjars.npm:jquery@3.5.0\' cannot contain a "user:pass@host:port" URL Authority component: \'\'.')
Traceback (most recent call last):
File "../vulnerablecode/vulnerabilities/management/commands/export.py", line 149, in export_data
ppath = hashid.get_package_purls_yml_file_path(purl)
File "../vulnerablecode/aboutcode/hashid/__init__.py", line 158, in get_package_purls_yml_file_path
return get_package_base_dir(purl) / PURLS_FILENAME
File "../vulnerablecode/aboutcode/hashid/__init__.py", line 147, in get_package_base_dir
purl = PackageURL.from_string(purl)
File "../vulnerablecode/venv/lib/python3.9/site-packages/packageurl/__init__.py", line 508, in from_string
raise ValueError(msg)
ValueError: Invalid purl 'pkg:nuget/org.webjars.npm:jquery@3.5.0' cannot contain a "user:pass@host:port" URL Authority component: ''.
```

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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