aboutcode-org / aboutcode-org/purldb

Incorrect collect/index_packages results

Offen
#477 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
HTML
Sterne
67
Forks
69
Ø Merge
8 T. 8 Std.
Gemergte PRs (30 T.)
1

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.