BUG: SBOM import fails with "The 'for_package' cannot be the same as 'resolved_to_package'" and duplicates number of dependencies #257
Labels
bug
Something isn't working
design needed
Design details needed to complete the issue
enhancement
New feature or request
Describe the bug
When importing a particular SBOM created with cdxgen, the
load_sbom
pipeline succeeds according to ScanCode.io, but DejaCode reports issues importing the dependencies. The error message states:The 'for_package' cannot be the same as 'resolved_to_package'
Repeating the SBOM import causes an additional issue. DejaCode duplicates the number of dependencies, apparently not realizing that these are the same dependencies that have been previously added.
Note: This is the same SBOM as aboutcode-org/scancode.io#1576 where ScanCode reported issues with
create_dependecies
but the overall pipeline is considered a success.To Reproduce
Not clear yet. Cannot share actual data at the moment. I will see if an MWE can be provided.
If the error provides indication what I should look out for in the SBOM, I might be able to find it quicker.
Expected behavior
The SBOM should be properly loaded and no duplicate dependency entries should be added
Screenshots
![Image](https://private-user-images.githubusercontent.com/157620768/411510067-ccdf620a-f410-453f-8273-d92759184d3e.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NDAzMDQsIm5iZiI6MTczOTk0MDAwNCwicGF0aCI6Ii8xNTc2MjA3NjgvNDExNTEwMDY3LWNjZGY2MjBhLWY0MTAtNDUzZi04MjczLWQ5Mjc1OTE4NGQzZS5QTkc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQwNDQwMDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZjkyNmY1ZTcwNjU2NWJlMDkxYmI3YTg3YzViODRiNjI3MTljYWMxN2QwNjY2YmZiNTIzYWIzNWM0Yzg1MTczJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.4TCibeJwfDNwiENhPhZ1_DmEqJAGC3_dPGqbm71SciM)
Context (OS, Browser, Device, etc.):
n.a.
The text was updated successfully, but these errors were encountered: