-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Bug description
An error occurs when trying to integrate DefectDojo with Jira 9.0+, on altering product settings.
Steps to reproduce
Steps to reproduce the behavior:
0. Be sure that target Jira instance has version 9.0+.
- Configure Jira instance in DefectDojo settings.
- Go to the existing product and select "Settings --> Edit"
- In Jira integration settings provide the valid settings. Press "Submit".
- See non-descriptive error that Jira settings were not saved.
Expected behavior
A clear and concise error message why the error occurred.
Working without errors with Jira instances 9.0+. :)
Deployment method (select with an X
)
- Docker Compose
- Kubernetes
- GoDojo
Environment information
- DefectDojo version: 2.15.0
Logs
No logs without DEBUG mode.
In DEBUG mode the error is "invalid JIRA Project Config, can't retrieve metadata". See also below.
Additional context (optional)
Jira's createmeta endpoint is deprecated since 2020, see https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html
However, Jira python module still uses it, see pycontribs/jira#1462
DefectDojo uses jira.createmeta() call in get_jira_meta() function in jira_link/helper.py file.
Moreover, DefectDojo does not handle exception properly which may be triggered by jira.createmeta().
See pull request #6962.