aboutcode-org / aboutcode-org/purldb

Incorrect collect/index_packages results

未關閉
#477 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
HTML
星號
67
分支
69
平均合併
8 天 8 小時
30 天內合併 PR
1

描述

Using the provided example, on https://public.purldb.io/api/collect/index_packages/ I post this:
```
{
"packages": [
{
"purl": "pkg:npm/less@1.0.32",
"addon_pipelines": [
"collect_symbols_ctags"
]
},
{
"purl": "pkg:npm/less",
"vers": "vers:npm/>=1.1.0|<=1.1.4"
},
{
"purl": "pkg:npm/foobar",
"addon_pipelines": [
"inspect_elf_binaries",
"collect_symbols_ctags"
]
}
],
"reindex": true,
"reindex_set": false
}

```

I get this response:
```JSON
{
"queued_packages_count": 0,
"queued_packages": [],
"requeued_packages_count": 16,
"requeued_packages": [
"pkg:npm/less@1.0.32",
"pkg:npm/less@1.0.32",
"pkg:npm/less@1.1.0",
"pkg:npm/less@1.1.0",
"pkg:npm/%40taskr/less@1.1.0",
"pkg:npm/%40brandcolors/less@1.1.0",
"pkg:npm/less@1.1.1",
"pkg:npm/less@1.1.1",
"pkg:npm/less@1.1.2",
"pkg:npm/less@1.1.2",
"pkg:npm/less@1.1.4",
"pkg:npm/less@1.1.4",
"pkg:npm/foobar@1.0.0",
"pkg:npm/foobar@1.0.0",
"pkg:npm/foobar@1.1.0",
"pkg:npm/foobar@1.1.0"
],
"unqueued_packages_count": 0,
"unqueued_packages": [],
"unsupported_packages_count": 0,
"unsupported_packages": [],
"unsupported_vers_count": 0,
"unsupported_vers": []
}
```

These two packages are completely unrelated and should NOT have been collected.
```JSON
"pkg:npm/%40taskr/less@1.1.0",
"pkg:npm/%40brandcolors/less@1.1.0",
```

I guess we ignore the namespace and query packages by name only.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。