Skip to content

Incorrect collect/index_packages results #477

Description

@pombredanne

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:

{
    "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.

        "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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions