BUG: SBOM import fails with "The 'for_package' cannot be the same as 'resolved_to_package'" and duplicates number of dependencies
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
Research direction
Start with the load_sbom pipeline and the create_dependecies handling referenced in the issue, using a minimal SBOM once reproducible input is available. Trace how an imported dependency is resolved and persisted, then verify that self-referential relationships are rejected appropriately and repeated imports do not create duplicate dependency entries.
Written by the indexing model from the issue text.
Description
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 https://github.com/aboutcode-org/scancode.io/issues/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
Context (OS, Browser, Device, etc.):
n.a.
- Dominant language
- Python
- Stars
- 53
- Forks
- 32
- Avg merge
- 16h 44m
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aboutcode-org/dejacode
-
Unify product Clone, "Save as new" and admin "Save as new" into a single clone featurePossibly taken @d4rshnn claimed this 10 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
aboutcode-org/dejacode#603 ·
Maintainers usually reply within 1 day
-
design needed enhancement
Difficulty 3/5 1-2 days Newbie friendliness 62/100
aboutcode-org/dejacode#561 · 3 comments ·
Maintainers usually reply within 1 day
-
Enhancement request: Refine License Category - Copyleft LimitedMay be free again @hesa claimed this 138 days ago, and no pull request is open. Opendesign needed enhancement
aboutcode-org/dejacode#499 · 13 comments · 3 assignees ·
Maintainers usually reply within 1 day
-
BUG: Product overview page splits product with many versions across pagesMay be free again A pull request for this issue was closed without being merged. Openbug design needed enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
aboutcode-org/dejacode#460 ·
Maintainers usually reply within 1 day
-
design needed
Difficulty 5/5 Over a week Newbie friendliness 20/100
aboutcode-org/dejacode#452 · 2 comments ·
Maintainers usually reply within 1 day
All issues in aboutcode-org/dejacode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mohanraj00/entelos#200 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
sweep
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
bketelsen/truenas-mcp#77 ·
Maintainers usually reply within 1 day
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOpen
Difficulty 1/5 Under an hour Newbie friendliness 86/100
sandbox-quantum/switch#2163 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openedx/xblock-lti-consumer#765 ·
Maintainers usually reply within 1 day