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

Correct SLA filter for Finding API #9101

Merged
merged 1 commit into from Dec 4, 2023
Merged

Conversation

Maffooch
Copy link
Contributor

@Maffooch Maffooch commented Dec 4, 2023

Correct stack trace:

[04/Dec/2023 10:57:38] ERROR [dojo.api_v2.exception_handler:36] 'Product' object has no attribute 'burprawrequestresponse_set'
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "build/bdist.linux-x86_64/egg/pro_enhancements/finding/api/views.py", line 46, in list
  File "/usr/local/lib/python3.11/site-packages/drf_spectacular/drainage.py", line 193, in wrapped_method
    return method(self, request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/dojo/api_v2/prefetch/mixins.py", line 21, in list
    results.append(serializer.to_representation(entry))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/rest_framework/serializers.py", line 522, in to_representation
    ret[field.field_name] = field.to_representation(attribute)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/rest_framework/fields.py", line 1838, in to_representation
    return method(value)
           ^^^^^^^^^^^^^
  File "/app/dojo/api_v2/serializers.py", line 1787, in get_request_response
    burp_req_resp = obj.burprawrequestresponse_set.all()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Product' object has no attribute 'burprawrequestresponse_set'
[04/Dec/2023 10:57:38] ERROR [django.request:241] Internal Server Error: /api/v2/findings/

Copy link

dryrunsecurity bot commented Dec 4, 2023

Contextual Security Analysis

As DryRun Security performs checks, we’ll summarize them here. You can always dive into the results in the section below for checks.

Status DryRun Security Check
AI-powered Sensitive Function Check
Configured Sensitive Files Check
AI-powered Sensitive Files Check

Chat with your AI-powered Security Buddy by typing /dryrunsec: (or /drs:) followed by your question. Example: /dryrunsec: From a security perspective, what are some sensitive files in an Express application?

Install and configure more repositories at DryRun Security

@blakeaowens blakeaowens merged commit 7e1bb1e into DefectDojo:bugfix Dec 4, 2023
119 checks passed
@Maffooch Maffooch deleted the api branch December 4, 2023 18:26
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.

None yet

5 participants