Skip to content

Commit c58a297

Browse files
authoredJul 24, 2024
Merge pull request DefectDojo#10626 from DefectDojo/release/2.36.5
Release: Merge release into master from: release/2.36.5
2 parents 5e39f4c + 3f5ad07 commit c58a297

File tree

7 files changed

+19
-9
lines changed

7 files changed

+19
-9
lines changed
 

‎components/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "defectdojo",
3-
"version": "2.36.4",
3+
"version": "2.36.5",
44
"license" : "BSD-3-Clause",
55
"private": true,
66
"dependencies": {

‎docs/content/en/usage/features.md

-2
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,6 @@ details about the deduplication process : switch
388388

389389
### Deduplication - APIv2 parameters
390390

391-
- `skip_duplicates`: if true, duplicates are not
392-
inserted at all
393391
- `close_old_findings` : if true, findings that are not
394392
duplicates and that were in the previous scan of the same type
395393
(example ZAP) for the same engagement (or product in case of

‎dojo/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# Django starts so that shared_task will use this app.
55
from .celery import app as celery_app # noqa: F401
66

7-
__version__ = '2.36.4'
7+
__version__ = '2.36.5'
88
__url__ = 'https://github.com/DefectDojo/django-DefectDojo'
99
__docs__ = 'https://documentation.defectdojo.com'

‎dojo/finding/views.py

+9
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,7 @@ def close_finding(request, fid):
12511251
form.cleaned_data.get("mitigated_by") or request.user
12521252
)
12531253
finding.is_mitigated = True
1254+
finding.under_review = False
12541255
finding.last_reviewed = finding.mitigated
12551256
finding.last_reviewed_by = request.user
12561257
finding.false_p = form.cleaned_data.get("false_p", False)
@@ -1265,6 +1266,8 @@ def close_finding(request, fid):
12651266
status.mitigated = True
12661267
status.last_modified = timezone.now()
12671268
status.save()
1269+
# Clear the risk acceptance, if present
1270+
ra_helper.risk_unaccept(finding)
12681271

12691272
# Manage the jira status changes
12701273
push_to_jira = False
@@ -1431,13 +1434,16 @@ def reopen_finding(request, fid):
14311434
finding.is_mitigated = False
14321435
finding.last_reviewed = finding.mitigated
14331436
finding.last_reviewed_by = request.user
1437+
finding.under_review = False
14341438
endpoint_status = finding.status_finding.all()
14351439
for status in endpoint_status:
14361440
status.mitigated_by = None
14371441
status.mitigated_time = None
14381442
status.mitigated = False
14391443
status.last_modified = timezone.now()
14401444
status.save()
1445+
# Clear the risk acceptance, if present
1446+
ra_helper.risk_unaccept(finding)
14411447

14421448
# Manage the jira status changes
14431449
push_to_jira = False
@@ -1759,6 +1765,9 @@ def clear_finding_review(request, fid):
17591765

17601766
finding = form.save(commit=False)
17611767

1768+
if finding.is_mitigated:
1769+
finding.mitigated = now
1770+
finding.mitigated_by = request.user
17621771
finding.under_review = False
17631772
finding.last_reviewed = now
17641773
finding.last_reviewed_by = request.user

‎dojo/forms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ class ClearFindingReviewForm(forms.ModelForm):
18121812

18131813
class Meta:
18141814
model = Finding
1815-
fields = ['active', 'verified', 'false_p', 'out_of_scope', 'duplicate']
1815+
fields = ['active', 'verified', 'false_p', 'out_of_scope', 'duplicate', "is_mitigated"]
18161816

18171817

18181818
class ReviewFindingForm(forms.Form):

‎dojo/importers/options.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,12 @@ def compress_options(self):
123123
class_name = None
124124
# Get the actual class if available
125125
if len(id_list) > 0:
126-
class_name = item_type
126+
id_type = type(id_list[0])
127+
# Only define the class name if we are able to make a query on the object in decompression
128+
if isinstance(id_type, int):
129+
class_name = item_type if item_type is None else id_type
127130
# Ensure we are not setting a class name as None
128-
if class_name is type(None):
131+
if class_name is type(None) or class_name is None:
129132
compressed_fields[field] = value
130133
# Add the list to the dict
131134
else:

‎helm/defectdojo/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: "2.36.4"
2+
appVersion: "2.36.5"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
5-
version: 1.6.141
5+
version: 1.6.142
66
icon: https://www.defectdojo.org/img/favicon.ico
77
maintainers:
88
- name: madchap

0 commit comments

Comments
 (0)
Please sign in to comment.