Skip to content

First call to reimport closes findings outside test #14363

@valentijnscholten

Description

@valentijnscholten

As per: https://defectdojocommunity.slack.com/archives/C0A4DBKANDS/p1771564613056809

We have a lot of tests which are based on Dependency Check reports. All imports are done by Jenkins pipelines. Yesterday we set up a new pipeline and the first import of an empty DC report closed a bunch of findings a test which was not addressed by the import. The second run closed again some findings but this time it was a test which was not affected by the first import.
I can't see the import in the history of the wrong test, but I can see them in the reimport history on the affected findings within the tests.

This was the initial reimport call (the report has no findings).

curl --fail --location --request POST https://.../api/v2/reimport-scan/ --header Authorization: Token **** --form 
minimum_severity="Info" --form active="true" --form verified="true" --form scan_type="Dependency Check Scan" --form 
test_title="be-collaboration - Dependency Check Scan" --form product_type_name="Portal" --form product_name="BPC" --form engagement_name="support/4.2.x" --form auto_create_context="true" --form skip_duplicates="true" --form 
deduplication_on_engagement="true" --form close_old_findings="true" --form branch_tag="support/4.2.x" --form 
commit_hash="d2bcb5c8d3385df8ca5b3c3f6d652d07bd7c1489" --form build_id="1" --form 
group_by="component_name+component_version" --form file=@".../workspace/target/dependency-check-report.xml"

This issue sounds like #14353 but that's about an explicity initial Import which is expected behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions