Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finding Jira Mapping API allows assignment of a single Jira Issue to multiple findings #9930

Open
1 of 3 tasks
ccronca opened this issue Apr 16, 2024 · 0 comments
Open
1 of 3 tasks
Labels

Comments

@ccronca
Copy link

ccronca commented Apr 16, 2024

Bug Description:

When using the jira_finding_mappings API endpoint in DefectDojo, it is possible to update a finding's Jira mapping with a Jira issue that is already assigned to another finding. This action does not raise any errors, but it results in unexpected behavior. Specifically, after updating the mapping, the integration between Jira and DefectDojo only works with the original finding. For instance, if the Jira issue is closed, only the original issue will be affected, not the new assigned finding.

Additionally, attempting to map an already existing Jira issue through the UI results in an "already linked" error, indicating that the UI correctly prevents this action.

Steps to reproduce
Steps to reproduce the behavior:

  1. Use the PUT jira_finding_mappings API endpoint to update a finding's Jira mapping with a Jira issue already assigned to another finding
  2. Observe that no errors are raised
  3. Notice that the integration between Jira and DefectDojo only affects the original finding, not the new assigned finding

Expected behavior
The API jira_finding_mappings endpoint should raise an error or prevent updating a finding's Jira mapping with a Jira issue that is already assigned to another finding.

Deployment method (select with an X)

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • DefectDojo version v. 2.31.4
@ccronca ccronca added the bug label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant