Skip to content

BUG: "Scan all Packages" Action does not update Product-Package assignments #388

@DennisClark

Description

@DennisClark

Describe the bug
"Scan all Packages" Action does not update Product-Package assignments, unlike "Improve Packages from PurlDB"

To Reproduce
Steps to reproduce the behavior:

  1. Get the test SBOM. curl --remote-name https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tgz.spdx.json
  2. Create a Product in DejaCode v5.4.0. Execute import SBOM on the downloaded SBOM.
  3. Review results. My test imported 31 Packages to the Product Inventory, all with concluded license of unknown.
  4. Run "Scan all Packages". My test found and updated the license assignments for most of the Packages. None of the Product-Package license assignments were updated.
  5. Run "Improve Packages from PurlDB". My test resulted in some updates to Product-Package license assignments.
  6. if you Edit Product-Packages with the unknown license assignment you can update it with the scanned license key which is shown in the edit form, but that is a laborious, error-prone, and time-consuming manual process.

Expected behavior
The "Scan all Packages" Action should treat all Product-Package license assignments set to unknown as if the license assignment is null and update the Product-Package license assignment from the scan results.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdesign neededDesign details needed to complete the issueenhancementNew feature or request

Type

No type

Projects

Status

Todo ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions