Unable to Create Issue from vulnerability in Security Dashboard
Summary
For a specific customer project we are unable to use the Create Issue
button for any of their listed vulnerabilities. As a first iteration, it may be important to allow for better debugging because we are not able to determine any additional information via Kibana nor in the browser console. A banner is simply provided when clicking the button and it fails to create an issue.
Steps to reproduce
- Security & Compliance > Security Dashboard > Click the description of a vulnerability > Click
Create Issue
- Observe error
Example Project
Customer project is available upon request.
What is the current bug behavior?
When clicking "Create Issue" a banner is shown: "Something went wrong, could not create an issue."
What is the expected correct behavior?
Clicking "Create Issue" should create an issue. If there is an error, it should provide further information on what is wrong.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com 13.1.0-pre 270344d3
ZD Ticket (Internal):
Implementation Details
-
frontend add a check for vulnerability.create_issue_url
around https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/vulnerabilities/components/header.vue#L164 and throw an error described below if the property is not available
Error:
Title:
Could not create issue
Text:
Ensure that issue tracking is enabled for this project and you have permission to create new issues.
Link detail 1:
https://docs.gitlab.com/ee/user/project/settings/#sharing-and-permissions
Link detail 2:
https://docs.gitlab.com/ee/user/permissions.html#project-members-permissions