Skip to content

Commit 96f2f34

Browse files
Merge pull request #4234 from DefectDojo/release/1.14.1
Release/1.14.1
2 parents 03a3bd3 + 725963c commit 96f2f34

File tree

9 files changed

+15
-24
lines changed

9 files changed

+15
-24
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": "1.14.0",
3+
"version": "1.14.1",
44
"dependencies": {
55
"JUMFlot": "jumjum123/JUMFlot#*",
66
"bootstrap": "^3.4.0",

dojo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
default_app_config = 'dojo.apps.DojoAppConfig'
88

9-
__version__ = '1.14.0'
9+
__version__ = '1.14.1'
1010
__url__ = 'https://github.com/DefectDojo/django-DefectDojo'
1111
__docs__ = 'https://defectdojo.github.io/django-DefectDojo/'

dojo/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ def clean(self):
17831783
form_data = self.cleaned_data
17841784

17851785
try:
1786-
jira = jira_helper.get_jira_connection_raw(form_data['url'], form_data['username'], form_data['password'], validate=True)
1786+
jira = jira_helper.get_jira_connection_raw(form_data['url'], form_data['username'], form_data['password'])
17871787
logger.debug('valid JIRA config!')
17881788
except Exception as e:
17891789
# form only used by admins, so we can show full error message using str(e) which can help debug any problems
@@ -1810,7 +1810,7 @@ def clean(self):
18101810
form_data = self.cleaned_data
18111811

18121812
try:
1813-
jira = jira_helper.get_jira_connection_raw(form_data['url'], form_data['username'], form_data['password'], validate=True)
1813+
jira = jira_helper.get_jira_connection_raw(form_data['url'], form_data['username'], form_data['password'],)
18141814
logger.debug('valid JIRA config!')
18151815
except Exception as e:
18161816
# form only used by admins, so we can show full error message using str(e) which can help debug any problems

dojo/jira_link/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,12 @@ def has_jira_configured(obj):
311311
return get_jira_project(obj) is not None
312312

313313

314-
def get_jira_connection_raw(jira_server, jira_username, jira_password, validate=False):
314+
def get_jira_connection_raw(jira_server, jira_username, jira_password):
315315
try:
316316
jira = JIRA(server=jira_server,
317317
basic_auth=(jira_username, jira_password),
318318
options={"verify": settings.JIRA_SSL_VERIFY},
319-
max_retries=0, validate=validate)
319+
max_retries=0)
320320

321321
logger.debug('logged in to JIRA ''%s'' successfully', jira_server)
322322

dojo/jira_link/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def express_new_jira(request):
217217
jira_password = jform.cleaned_data.get('password')
218218

219219
try:
220-
jira = jira_helper.get_jira_connection_raw(jira_server, jira_username, jira_password, validate=True)
220+
jira = jira_helper.get_jira_connection_raw(jira_server, jira_username, jira_password)
221221
except Exception as e:
222222
logger.exception(e) # already logged in jira_helper
223223
messages.add_message(request,
@@ -301,7 +301,7 @@ def new_jira(request):
301301
jira_password = jform.cleaned_data.get('password')
302302

303303
logger.debug('calling get_jira_connection_raw')
304-
jira = jira_helper.get_jira_connection_raw(jira_server, jira_username, jira_password, validate=True)
304+
jira = jira_helper.get_jira_connection_raw(jira_server, jira_username, jira_password)
305305

306306
new_j = jform.save(commit=False)
307307
new_j.url = jira_server
@@ -342,7 +342,7 @@ def edit_jira(request, jid):
342342
# on edit the password is optional
343343
jira_password = jira_password_from_db
344344

345-
jira = jira_helper.get_jira_connection_raw(jira_server, jira_username, jira_password, validate=True)
345+
jira = jira_helper.get_jira_connection_raw(jira_server, jira_username, jira_password)
346346

347347
new_j = jform.save(commit=False)
348348
new_j.url = jira_server

dojo/unittests/test_jira_config_product.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def setUp(self):
4848
def add_jira_instance(self, data, jira_mock):
4949
response = self.client.post(reverse('add_jira'), urlencode(data), content_type='application/x-www-form-urlencoded')
5050
# check that storing a new config triggers a login call to JIRA
51-
call_1 = call(data['url'], data['username'], data['password'], validate=True)
52-
call_2 = call(data['url'], data['username'], data['password'], validate=True)
53-
# jira_mock.assert_called_once_with(data['url'], data['username'], data['password'], validate=True)
51+
call_1 = call(data['url'], data['username'], data['password'])
52+
call_2 = call(data['url'], data['username'], data['password'])
53+
# jira_mock.assert_called_once_with(data['url'], data['username'], data['password'])
5454
jira_mock.assert_has_calls([call_1, call_2])
5555
# succesful, so should redirect to list of JIRA instances
5656
self.assertRedirects(response, '/jira')
@@ -85,7 +85,7 @@ def test_add_jira_instance_unknown_host(self):
8585

8686
# test raw connection error
8787
with self.assertRaises(requests.exceptions.RequestException):
88-
jira = jira_helper.get_jira_connection_raw(data['url'], data['username'], data['password'], validate=True)
88+
jira = jira_helper.get_jira_connection_raw(data['url'], data['username'], data['password'])
8989

9090
@patch('dojo.jira_link.views.jira_helper.get_jira_connection_raw')
9191
def test_add_jira_instance_invalid_credentials(self, jira_mock):

dojo/unittests/tools/test_safety_parser.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@ def test_example_report(self):
1010
parser = SafetyParser()
1111
findings = parser.get_findings(testfile, Test())
1212
self.assertEqual(3, len(findings))
13-
for item in findings:
14-
self.assertIsNotNone(item.cve)
1513

1614
def test_no_cve(self):
1715
testfile = open("dojo/unittests/scans/safety/no_cve.json")
1816
parser = SafetyParser()
1917
findings = parser.get_findings(testfile, Test())
2018
self.assertEqual(1, len(findings))
21-
self.assertIsNone(findings[0].cve)
2219

2320
def test_empty_report(self):
2421
testfile = open("dojo/unittests/scans/safety/empty.json")
@@ -31,9 +28,6 @@ def test_multiple_cves(self):
3128
parser = SafetyParser()
3229
findings = parser.get_findings(testfile, Test())
3330
self.assertEqual(1, len(findings))
34-
for finding in findings:
35-
if "37863" == finding.unique_id_from_tool:
36-
self.assertIsNone(finding.cve)
3731

3832
def test_multiple2(self):
3933
testfile = open("dojo/unittests/scans/safety/many_vulns.json")
@@ -44,6 +38,3 @@ def test_multiple2(self):
4438
if "39608" == finding.unique_id_from_tool:
4539
self.assertEqual("httplib2", finding.component_name)
4640
self.assertEqual("0.18.1", finding.component_version)
47-
self.assertEqual("CVE-2021-21240", finding.cve)
48-
elif "39525" == finding.unique_id_from_tool:
49-
self.assertIsNone(finding.cve)

helm/defectdojo/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
2-
appVersion: "1.14.0"
2+
appVersion: "1.14.1"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
55
version: 1.5.1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='DefectDojo',
7-
version='1.14.0',
7+
version='1.14.1',
88
author='Greg Anderson',
99
description="Tool for managing vulnerability engagements",
1010
install_requires=[

0 commit comments

Comments
 (0)