The JIRA integration does not work with a trailing slash in Web URL ver 12.0.0-ee
Summary
The JIRA integration does not work with a trailing slash in Web URL. It was previously working in version 10.3.4; since the upgrade to GitLab Enterprise Edition 12.0.0-ee; links to Jira include an extra slash.
Steps to reproduce
It was previously working in version 10.3.4; since the upgrade to GitLab Enterprise Edition 12.0.0-ee; links to Jira include an extra slash. We noticed it in our merge request pages in which the Jira issue is noted in the description field. When browsing to the page in chrome, it includes an extra slash.
Example: https://customer.atlassian.net//browse/PROJ-123
JIRA Integration porject service configuration is of the following: Jira issue tracker template.
Web URL:
https://customer.atlassian.net/
Once we modify the service template; new merge request pages are corrected without the extra slash but it does not update the pages for closed merge requests.
What is the current bug behavior?
GitLab Enterprise Edition 12.0.0-ee; links to Jira include an extra slash.
We noticed it in our merge request pages in which the Jira issue is noted in the description field. When browsing to the page in chrome, it includes an extra slash.
Example: https://customer.atlassian.net//browse/PROJ-123
JIRA Integration porject service configuration is of the following:
Jira issue tracker template.
Web URL:
https://customer.atlassian.net/
Once we modify the service template; new merge request pages are corrected without the extra slash but it does not update the pages for closed merge requests.
What is the expected correct behavior?
JIRA Integration porject service configuration is of the following:
Jira issue tracker template.
Web URL:
https://customer.atlassian.net/
Links from the merge request page are updated without the extra slash. Comments related to the merge request are updated in the linked Jira ticket.
Example: https://customer.atlassian.net/browse/PROJ-123
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
)
Possible fixes
https://gitlab.com/gitlab-org/gitlab-ce/issues/42494 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16748 (If you can, link to the line of code that might be responsible for the problem)