aboutcode-org / aboutcode-org/vulnerablecode

Incorrect PURL found while running export management command

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