DefectDojo / django-DefectDojo

DevSecOps, ASPM, Vulnerability Management. All on one platform.
https://defectdojo.com
BSD 3-Clause "New" or "Revised" License
3.64k stars 1.52k forks source link

Jira DD_JIRA_EXTRA_ISSUE_TYPES error: default_issue_type must be an iterable #10825

Closed VM-Beebly closed 2 weeks ago

VM-Beebly commented 1 month ago

Hello,

I tried to update my defectdojo instance (kubernetes using the chart helm) from 2.35.4 to 2.37.3 The container defectdojo-initializer fails with the following error:

dojo.JIRA_Instance.default_issue_type: (fields.E005) 'choices' must be an iterable containing (actual value, human readable name) tuples.

In my values.yml, i have this variable setup in extraConfigs: DD_JIRA_EXTRA_ISSUE_TYPES: 'Finding'

I think the issue is coming from a change in the way python append tuples in python 3.11, as i didn't see any change in the code concerning this variable in recent commits. I tried to replace the code here

I pulled the code locally and replace this: JIRA_ISSUE_TYPE_CHOICES_CONFIG += (env('DD_JIRA_EXTRA_ISSUE_TYPES'), env('DD_JIRA_EXTRA_ISSUE_TYPES')) by JIRA_ISSUE_TYPE_CHOICES_CONFIG += ((env('DD_JIRA_EXTRA_ISSUE_TYPES'), env('DD_JIRA_EXTRA_ISSUE_TYPES')),) and it solved the issue on my instance

Deployment method (select with an X)

Thanks for your help,

VM-Beebly commented 2 weeks ago

Hello, i'm closing this issue as it is fixed in 2.38.1 thanks to #10864. Thanks for your help !