-
Notifications
You must be signed in to change notification settings - Fork 1.7k
🐛 Fix finding_group view #13119
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
🐛 Fix finding_group view #13119
Conversation
🔴 Risk threshold exceeded.This pull request modifies a sensitive file (dojo/finding_group/views.py) and was flagged twice by the scanner as "Configured Codepaths Edit" (sensitive edits detected); the finding lists a risk threshold of "failing" but is not blocking, and allowed authors/sensitive paths can be configured in .dryrunsecurity.yaml.
🔴 Configured Codepaths Edit in
|
Vulnerability | Configured Codepaths Edit |
---|---|
Description | Sensitive edits detected for this file. Sensitive file paths and allowed authors can be configured in .dryrunsecurity.yaml . |
🔴 Configured Codepaths Edit in dojo/finding_group/views.py
Vulnerability | Configured Codepaths Edit |
---|---|
Description | Sensitive edits detected for this file. Sensitive file paths and allowed authors can be configured in .dryrunsecurity.yaml . |
We've notified @mtesauro.
All finding details can be found in the DryRun Security Dashboard.
Thanks. Does this mean we lack some pageviews in the integration tests? |
I have no clue, just ran into this error. Might be |
Is it an error or warning as I am unable to reproduce it. |
added some basic UI tests. the ruff stuff should be fixed soon on the bugfix branch. |
c5acba6
to
2f9d78d
Compare
It was an error. You can reproduce it, if you setup a new DefectDojo (docker system prune and docker volume prune) |
uwsgi-1 | File "/app/dojo/finding_group/views.py", line 288, in paginate_queryset
uwsgi-1 | paginator = Paginator(queryset, page_size)
uwsgi-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
uwsgi-1 | File "/usr/local/lib/python3.11/site-packages/django/core/paginator.py", line 46, in init
uwsgi-1 | self._check_object_list_is_ordered()
uwsgi-1 | File "/usr/local/lib/python3.11/site-packages/django/core/paginator.py", line 142, in _check_object_list_is_ordered
uwsgi-1 | warnings.warn(
uwsgi-1 | django.core.paginator.UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'dojo.models.Finding_Group'> QuerySet.