Bug description
JFrog Xray Unified Scan requires missing field. The "references" field is not in the report.
Steps to reproduce
Steps to reproduce the behavior:
- Go to JFrog Xray reports
- Click on "Reports"
- Select the report and click on "Export" button. Choose JSON format.
- Try to upload the report to DefectDojo with "JFrog Xray Unified Scan" parser.
- Get the error from the screenshot
Expected behavior
The report uploaded to the DefectDojo
Deployment method (select with an X)
Environment information
- DefectDojo version 2.50.5
- JFrog Cloud Platform
Logs
Traceback (most recent call last):
File "/app/dojo/engagement/views.py", line 936, in import_findings
context["test"], _, finding_count, closed_finding_count, _, _, _ = importer_client.process_scan(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/dojo/importers/default_importer.py", line 109, in process_scan
parsed_findings = self.parse_findings(scan, parser)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/dojo/importers/base_importer.py", line 244, in parse_findings
return self.parse_findings_static_test_type(scan, parser)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/dojo/importers/default_importer.py", line 342, in parse_findings_static_test_type
return super().parse_findings_static_test_type(scan, parser)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/dojo/importers/base_importer.py", line 165, in parse_findings_static_test_type
return parser.get_findings(scan, self.test)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/dojo/tools/jfrog_xray_unified/parser.py", line 23, in get_findings
return self.get_items(tree, test)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/dojo/tools/jfrog_xray_unified/parser.py", line 31, in get_items
item = get_item(node, test)
^^^^^^^^^^^^^^^^^^^^
File "/app/dojo/tools/jfrog_xray_unified/parser.py", line 107, in get_item
references = "\n".join(vulnerability["references"])
~~~~~~~~~~~~~^^^^^^^^^^^^^^
Sample scan files
samplefile.json
Screenshots

Additional context
The "references" field is required by parser
Bug description
JFrog Xray Unified Scan requires missing field. The "references" field is not in the report.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The report uploaded to the DefectDojo
Deployment method (select with an
X)Environment information
Logs
Sample scan files
samplefile.json
Screenshots

Additional context
The "references" field is required by parser