Skip to content

Commit 2748b8d

Browse files
authored
Merge pull request #12864 from DefectDojo/release/2.48.5
Release: Merge release into master from: release/2.48.5
2 parents 0f9682b + c261cbd commit 2748b8d

File tree

7 files changed

+103
-34
lines changed

7 files changed

+103
-34
lines changed

components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "defectdojo",
3-
"version": "2.48.4",
3+
"version": "2.48.5",
44
"license" : "BSD-3-Clause",
55
"private": true,
66
"dependencies": {

dojo/__init__.py

Lines changed: 1 addition & 1 deletion
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.48.4"
7+
__version__ = "2.48.5"
88
__url__ = "https://github.com/DefectDojo/django-DefectDojo"
99
__docs__ = "https://documentation.defectdojo.com"

dojo/settings/settings.dist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,7 @@ def saml2_attrib_map_format(din):
18461846
"LEN-": "https://support.lenovo.com/cl/de/product_security/", # e.g. https://support.lenovo.com/cl/de/product_security/LEN-94953
18471847
"MGAA-": "https://advisories.mageia.org/&&.html", # e.g. https://advisories.mageia.org/MGAA-2013-0054.html
18481848
"MGASA-": "https://advisories.mageia.org/&&.html", # e.g. https://advisories.mageia.org/MGASA-2025-0023.html
1849+
"NCSC-": "https://advisories.ncsc.nl/advisory?id=", # e.g. https://advisories.ncsc.nl/advisory?id=NCSC-2025-0191
18491850
"NTAP-": "https://security.netapp.com/advisory/", # e.g. https://security.netapp.com/advisory/ntap-20250328-0007
18501851
"OPENSUSE-SU-": "https://osv.dev/vulnerability/", # e.g. https://osv.dev/vulnerability/openSUSE-SU-2025:14898-1
18511852
"OSV-": "https://osv.dev/vulnerability/", # e.g. https://osv.dev/vulnerability/OSV-2024-1330

dojo/tools/blackduck_component_risk/importer.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,13 @@ def _process_zipfile(self, report: Path) -> (dict, dict, dict):
6262
elif "source" in file_name:
6363
with io.TextIOWrapper(zipf.open(full_file_name), encoding="utf-8") as f:
6464
source = self.__get_source(f)
65-
# Raise exception to error-out if the zip is missing either of
66-
# these files.
67-
if not (c_file and s_file):
68-
msg = "Zip file missing needed files!"
69-
raise Exception(msg)
70-
7165
except Exception:
7266
logger.exception("Could not process zip file")
67+
# Raise exception to error-out if the zip is missing either of
68+
# these files.
69+
if not (c_file and s_file):
70+
msg = "Zip file missing needed files!"
71+
raise Exception(msg)
7372

7473
return components, security_issues, source
7574

helm/defectdojo/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: "2.48.4"
2+
appVersion: "2.48.5"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
5-
version: 1.6.199
5+
version: 1.6.200
66
icon: https://www.defectdojo.org/img/favicon.ico
77
maintainers:
88
- name: madchap

unittests/dojo_test_case.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def get_results_by_id(self, results: list, object_id: int) -> dict | None:
536536
return None
537537

538538
def import_scan_with_params(self, filename, scan_type="ZAP Scan", engagement=1, minimum_severity="Low", *, active=True, verified=False,
539-
push_to_jira=None, endpoint_to_add=None, tags=None, close_old_findings=False, group_by=None, engagement_name=None,
539+
push_to_jira=None, endpoint_to_add=None, tags=None, close_old_findings=None, group_by=None, engagement_name=None,
540540
product_name=None, product_type_name=None, auto_create_context=None, expected_http_status_code=201, test_title=None,
541541
scan_date=None, service=None, force_active=True, force_verified=True):
542542

@@ -546,9 +546,11 @@ def import_scan_with_params(self, filename, scan_type="ZAP Scan", engagement=1,
546546
"scan_type": scan_type,
547547
"file": testfile,
548548
"version": "1.0.1",
549-
"close_old_findings": close_old_findings,
550549
}
551550

551+
if close_old_findings is not None:
552+
payload["close_old_findings"] = close_old_findings
553+
552554
if active is not None:
553555
payload["active"] = active
554556

@@ -594,7 +596,7 @@ def import_scan_with_params(self, filename, scan_type="ZAP Scan", engagement=1,
594596
return self.import_scan(payload, expected_http_status_code)
595597

596598
def reimport_scan_with_params(self, test_id, filename, scan_type="ZAP Scan", engagement=1, minimum_severity="Low", *, active=True, verified=False, push_to_jira=None,
597-
tags=None, close_old_findings=True, group_by=None, engagement_name=None, scan_date=None, service=None,
599+
tags=None, close_old_findings=None, group_by=None, engagement_name=None, scan_date=None, service=None,
598600
product_name=None, product_type_name=None, auto_create_context=None, expected_http_status_code=201, test_title=None):
599601
with Path(filename).open(encoding="utf-8") as testfile:
600602
payload = {
@@ -604,9 +606,11 @@ def reimport_scan_with_params(self, test_id, filename, scan_type="ZAP Scan", eng
604606
"scan_type": scan_type,
605607
"file": testfile,
606608
"version": "1.0.1",
607-
"close_old_findings": close_old_findings,
608609
}
609610

611+
if close_old_findings is not None:
612+
payload["close_old_findings"] = close_old_findings
613+
610614
if test_id is not None:
611615
payload["test"] = test_id
612616

0 commit comments

Comments
 (0)