Skip to content

Commit 5a47ed8

Browse files
committed
🐛 fix close_old_findings field in several parsers #14640
1 parent df916fd commit 5a47ed8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dojo/tools/hydra/parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def __extract_finding(
7474
):
7575
msg = "Vital information is missing for this finding! Skipping this finding!"
7676
raise ValueError(msg)
77-
7877
finding = Finding(
7978
test=test,
8079
title="Weak username / password combination found for " + host,
@@ -91,7 +90,7 @@ def __extract_finding(
9190
+ password,
9291
static_finding=False,
9392
dynamic_finding=True,
94-
service=metadata.service_type,
93+
component_name=metadata.service_type,
9594
)
9695
if settings.V3_FEATURE_LOCATIONS:
9796
finding.unsaved_locations = [LocationData.url(host=host, port=port)]

unittests/tools/test_hydra_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def __assertFindingEquals(
128128
actual_finding.description)
129129
self.assertFalse(actual_finding.static_finding)
130130
self.assertTrue(actual_finding.dynamic_finding)
131+
self.assertEqual(actual_finding.component_name, "http-post-form")
131132
# The following fields should be not be set from this parser.
132133
self.assertIsNone(actual_finding.unique_id_from_tool)
133134
self.assertEqual(self.get_unsaved_locations(actual_finding)[0].host, finding_url)

0 commit comments

Comments
 (0)