aboutcode-org / purldb

Tools to create and expose a database of purls (Package URLs). This project is sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase/ and nexB for https://www.aboutcode.org/ Chat is at https://gitter.im/aboutcode-org/discuss
https://purldb.readthedocs.io/
34 stars 21 forks source link

Error 500 with collect/ with generic PURL without a version #500

Open pombredanne opened 2 months ago

pombredanne commented 2 months ago

I post this to collect/index_packages and I get a 500 error:

{
  "packages": [
{"purl": "pkg:generic/soap-bin-2.2.tar.gz?download_url=https://archive.apache.org/dist/ws/soap/version-2.2/soap-bin-2.2.tar.gz"}
  ],
  "reindex": true,
  "reindex_set": true
}

If I add version to the PURL, things work.

tdruez commented 1 month ago

Same issue on my side, calling /api/collect/?purl=pkg:npm/foo returns a 500.