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

bug:The vulnerability scan does not finish its execution. #1273

Open
1 task done
lucasRivas19 opened this issue May 31, 2024 · 1 comment
Open
1 task done

bug:The vulnerability scan does not finish its execution. #1273

lucasRivas19 opened this issue May 31, 2024 · 1 comment
Labels
bug Something isn't working release/2.1.1

Comments

@lucasRivas19
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The vulnerability scan does not complete its execution.
Previously it threw an exception for null when running the scan for low vulnerabilities. To fix this, add a condition in the function: record_exists(model, data, exclusion_keys=[]):
"""
Check if a record already exists in the database based on the data provided.

Arguments:
	model (django.db.models.Model) – The Django model to compare against.
	data (dict): Data dictionary containing fields and values.
	exclude_keys (list) – List of keys to exclude from the search.

Returns:
	bool: True if the record exists, False otherwise.
"""

# Extract the keys to be used for the search.
lookup_fields = {key: data[key] to enter data if key is not in exclude_keys}
if search_fields:
	return model.objects.filter(**lookup_fields).exists()
the rest:
	false return

but once I fix this, it doesn't finish my core scans.

Expected Behavior

I want the vulnerability scan to be completed

Steps To Reproduce

1- perform recommended scan

Environment

- reNgine: 
- OS: 
- Python: 
- Docker Engine: 
- Docker Compose: 
- Browser:

Anything else?

No response

@lucasRivas19 lucasRivas19 added the bug Something isn't working label May 31, 2024
Copy link

👋 Hi @lucasRivas19,
Issues is only for reporting a bug/feature request. Please read documentation before raising an issue https://rengine.wiki
For very limited support, questions, and discussions, please join reNgine Discord channel: https://discord.gg/azv6fzhNCE
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release/2.1.1
2 participants