Skip to content

SBOM upload of two components with same CPE using a wildcard are not imported all. #3371

Closed

Description

@groetingc

Current Behavior

image

Steps to Reproduce

  1. Create project
  2. Upload this sbom.json into that project:

{ "bomFormat": "CycloneDX", "specVersion": "1.4", "serialNumber": "urn:uuid:23d6e70a-4502-4da8-b196-efb41664c7fe", "version": 1, "metadata": { "timestamp": "2023-12-13T13:21:58+01:00", "component" : { "type" : "firmware" } }, "components": [ { "name": "alsa-utils", "version": "1.2.1.2", "licenses" : [ { "license" : { "id" : "GPL-2.0" } } ], "cpe": "cpe:2.3:*:alsa-project:alsa:1.2.1.2:*:*:*:*:*:*:*", "type": "application" }, { "name": "alsa-lib", "version": "1.2.1.2", "licenses" : [ { "license" : { "id" : "LGPL-2.1" } } ], "cpe": "cpe:2.3:*:alsa-project:alsa:1.2.1.2:*:*:*:*:*:*:*", "type": "library" } ] }

  1. Check after processing is complete how many components are listed.

NOTE: When changing the CPE from one component from:
"cpe": "cpe:2.3::alsa-project:alsa:1.2.1.2:::::::"
To:
"cpe": "cpe:2.3:a:alsa-project:alsa:1.2.1.2:::::::*"

SBOM Upload works as expected!

Expected Behavior

There should be 2 components listed.
image

Dependency-Track Version

4.10.0

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

16.1

Browser

Google Chrome

Checklist

Activity

  1. added
    defect
    on Jan 11, 2024
  2. nscuro commented on Jan 11, 2024

    @nscuro
    Member

    Thanks for reporting and providing a sample BOM @groetingc!

    I was able to reproduce, and I was able to verify that #3357 is going to fix it.
    Added a regression test here: 5458236

  3. added
    p2
    and removed on Jan 11, 2024
  4. github-actions commented on Mar 26, 2024

    @github-actions
    Contributor

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  5. locked as resolved and limited conversation to collaborators on Mar 26, 2024
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

    defectp2pending release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions