JIRA Development Panel project sync fails for projects with dots in name
Zendesk ticket: https://gitlab.zendesk.com/agent/tickets/94513
Summary
Projects with a dot in the name return a 404 when attempting to sync the repository via the JIRA Development Panel integration.
The integration and sync works as expected for projects without any dots in the name.
Steps to reproduce
- Create a project with dots in the name, e.g.
my.project.new
- Configure the JIRA Development Panel integration as per the docs
- Observe the account (
root
in this test case) is added to DVCS accounts and the project (my.project.new
) is listed under "Repository" - Click to sync the repository in the "Last activity" column under the DVCS account
- Observe the message Sync failed
What is the current bug behavior?
The sync fails.
What is the expected correct behavior?
The sync should succeed and report the last activity for the repository.
Relevant logs and/or screenshots
The path ../api/v3/repos/JIRA/my.project.new/branches?per_page=100&page=1
, which is what the sync hits returns a {"error":"404 Not Found"}
:
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/api/v3/repos/JIRA/my.project.new/branches?per_page=100&page=1" for 185.166.140.229 at 2018-05-03 08:16:31 +0000
==> /var/log/gitlab/gitlab-rails/api_json.log <==
{"time":"2018-05-03T08:16:31.941Z","severity":"INFO","duration":0.74,"db":0.0,"view":0.74,"status":404,"method":"GET","path":"/api/v3/repos/JIRA/my.project.new/branches","params":{"per_page":"100","page":"1"},"host":"159.89.196.240","ip":"185.166.140.229","ua":"JIRA DVCS Connector Vertigo/5.0.0-D20180430T055357"}
==> /var/log/gitlab/gitlab-workhorse/current <==
2018-05-03_08:16:31.94588 159.89.196.240 @ - - [2018/05/03:08:16:31 +0000] "GET /api/v3/repos/JIRA/my.project.new/branches?per_page=100&page=1 HTTP/1.1" 404 25 "" "JIRA DVCS Connector Vertigo/5.0.0-D20180430T055357" 0.013
==> /var/log/gitlab/nginx/gitlab_access.log <==
185.166.140.229 - - [03/May/2018:08:16:31 +0000] "GET /api/v3/repos/JIRA/my.project.new/branches?per_page=100&page=1 HTTP/1.1" 404 25 "" "JIRA DVCS Connector Vertigo/5.0.0-D20180430T055357"
Links/Referances
I've come accross a few similar issues where the API was returning a 404 for projects and/or branch names containing dots; all closed or reported as fixed: