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
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:
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'))
byJIRA_ISSUE_TYPE_CHOICES_CONFIG += ((env('DD_JIRA_EXTRA_ISSUE_TYPES'), env('DD_JIRA_EXTRA_ISSUE_TYPES')),)
and it solved the issue on my instanceDeployment method (select with an
X
)Thanks for your help,