Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter duplicate results and host details #2191

Merged
merged 4 commits into from
May 7, 2024

Conversation

a-h-abdelsalam
Copy link
Contributor

What

Use a hash map to lookup hashed results and host details in order to filter duplicates that may exist in the same batch of results fetched from the scanner.

Why

Not all duplicate results from the scanner were filtered since OSP results are fetched while the scan is running and duplicates
can exist in the same batch of fetched results even before insertion in the database.

References

GEA-525

  • Tests
    Tested in local development environment by modifying ospd-openvas to duplicate every result and checking that duplicated results are filtered out after the fix.

Not all duplicate results from the scanner were filtered since
OSP results are fetched while the scan is running and duplicates
can exist in the same batch of fetched results.
@a-h-abdelsalam a-h-abdelsalam requested a review from a team as a code owner May 6, 2024 14:20
Copy link

github-actions bot commented May 6, 2024

Conventional Commits Report

Type Number
Bug Fixes 1

🚀 Conventional commits found.

@timopollmeier timopollmeier merged commit 385fa39 into main May 7, 2024
9 checks passed
@timopollmeier timopollmeier deleted the filter-duplicate-results-and-host-details branch May 7, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants