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

--delete-scanner doesn't check if a scanner is used #2240

Open
guedou opened this issue Jun 27, 2024 · 1 comment
Open

--delete-scanner doesn't check if a scanner is used #2240

guedou opened this issue Jun 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@guedou
Copy link

guedou commented Jun 27, 2024

The --delete-scanner doesn't check if a scanner is used before deleting it. This causes GSA and the API to break.

Expected behavior

An error message is displayed if the scanner is assigned to a task.

Actual behavior

The scanner is deleted and GSA and the API breaks. The only fix that I found is to correct the task entry in PostgreSQL.

Steps to reproduce

1 . create a new scanner
2. create a track using this scanner
3. list tasks with GSA or the API

GVM versions

gsa:

docker compose -p openvas exec gsa gsad --version
Greenbone Security Assistant 22.08.0

gvm:

docker compose -p openvas exec gvmd gvmd --version
Greenbone Vulnerability Manager 23.6.2
Manager DB revision 255
Copyright (C) 2009-2021 Greenbone AG
License: AGPL-3.0-or-later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Environment

Linux Debian with a Docker Compose deployment.

@guedou guedou added the bug Something isn't working label Jun 27, 2024
@cfi-gb
Copy link
Member

cfi-gb commented Jun 27, 2024

Seems to be another variant of #2067 (there the user suggested to delete the associated task if the scanner is getting deleted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants