JIRA Integration: no support for prefix in JIRA URL
Dear GitLab Devs,
I would like to use the JIRA Integration feature within GitLab EE. (Yes, we have a subscription...)
It fails when I try to hit "Test settings" or try to accept a merge request with a keyword like "Fixes XXX" or "Solves XXX" or use them in commit messages.
Steps to reproduce:
- Configure the JIRA Service, provide all the URLs to a JIRA instance shaped like
https://reverseproxy.domain.tld/prefix/browse/:id
etc. - Activate and "Save"
- Hit "Test settings"
- Fails with "We tried to send a request to the provided URL but an error occurred."
- Look at the production.log:
[snipsnap]
Started GET "/group/project/services/jira/test" for 134.XX.XX.XX at 2015-09-09 13:30:36 +0200
Processing by Projects::ServicesController#test as HTML
Parameters: {"namespace_id"=>"group", "project_id"=>"project", "id"=>"jira"}
JiraService ERROR 404:
[snipsnap]
- Look at the Apache access logs:
134.XX.XX.XX - - [09/Sep/2015:13:30:36 +0200] "GET /rest/api/2/project HTTP/1.1" 404 1057 "-" "-"
- Note that the
prefix
is missing thus resulting in a 404 error.
Expected behaviour:
The JIRA Service should access the URL at https://reverseproxy.domain.tld/prefix/rest/api/2/project
not https://reverseproxy.domain.tld/rest/api/2/project
.