Closed calderonth closed 1 month ago
The odd thing is that enabling the BOMv2 experimental feature seem to resolve the issue. This leads me to believe that there was a regression introduced when adding the BOMv2 code which isn't gated by the config flag.
Hmmm, we took great care to not affect the legacy processing logic, hence keeping it entirely separate from the V2 implementation.
I can't 100% exclude us making any mistake in that, but looking at the errors you shared, those look pretty much exactly like the cases that the V2 implementation was supposed to fix (have a look at a few of the referenced Addressed Issues in https://github.com/DependencyTrack/dependency-track/pull/3357). So it makes sense that switching to V2 resolves them.
Interesting, the behavior was indeed observed on SBOM uploads that do not have components with PURL but instead components that report via CPE strings.
I will leave the BOMv2 enabled for now and observe the behavior on other uploads.
Any new observations since last week?
No, I think we can close this one since turning on the BOMv2 feature.
On Tue, 24 Sept 2024, 17:36 Niklas, @.***> wrote:
Any new observations since last week?
— Reply to this email directly, view it on GitHub https://github.com/DependencyTrack/dependency-track/issues/4151#issuecomment-2371790048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3DVRTCNZ66UEQMCGKDEDZYGIHZAVCNFSM6AAAAABOJ3RVMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZRG44TAMBUHA . You are receiving this because you authored the thread.Message ID: @.***>
Thanks for reporting back!
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.
Current Behavior
I recently upgraded to 4.11.7 and have observed regressions in the BOM processing code. Prior to this new version which includes the new BOMv2 processing code https://github.com/DependencyTrack/dependency-track/pull/3357 I would regularly upload my SBOM via the API or UI and the reporting/analysis would behave normally.
Since the update some of my uploads are not processingly correctly and I get database errors as well. For example, I can see the following stack traces:
Uploading the same SBOM over and over yields some more errors:
The main way to describe what I can see in the UI is that some of the components are purged from the project. Deleting all components from the project allows and re-uploading a fresh SBOM restores the state (with the current component count) until I upload a new SBOM again (I only use
CURRENT_VERSION
).The odd thing is that enabling the BOMv2 experimental feature seem to resolve the issue. This leads me to believe that there was a regression introduced when adding the BOMv2 code which isn't gated by the config flag.
Steps to Reproduce
Expected Behavior
Successive uploads of the same SBOM should not result in different components being reported.
Dependency-Track Version
4.11.7
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
No response
Browser
Google Chrome
Checklist