Skip to content

Close Old Findings doesn't work for parsers that set the service field #14640

@valentijnscholten

Description

@valentijnscholten

Whenever parsers set the service field on findings, this breaks the close_old_findings functionality.

For example the StackHawk parser sets the service field based on the application name from the report. All findings get a service value, for example "Application A".
But the Reimport requests did not contain a service value. The Close Old Findings feature will only close findings that have the service value specified in the request. So any findings that have a non-empty value for service will not get closed. In this case no findings get closed as all of them have Application A from the original import of the report.

Also if the application name changes the findings in the reimport report will no longer be matched against existing findings.

I think parser should never set the service fields as it is meant to be a meta field.

A quick search shows these affected parsers:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions