What steps will reproduce the problem?
- Create project in gitlab, eg. group "youtrackdemo", project name "YoutrackDemo"
- Try to add integration in youtrack (+sniff http requests)
- You will see "The specified URL does not point to a GitLab repository." error in Youtrack
- If you look at sniffing logs you will see that project is found correctly, with request similar to this one:
GET /api/v4/groups/youtrackdemo/projects?search=youtrackdemo&simple=true&per_page=100 HTTP/1.1
[{
"id": 49,
"description": "",
"name": "YoutrackDemo",
"name_with_namespace": "youtrackdemo / YoutrackDemo",
"path": "YoutrackDemo",
"path_with_namespace": "youtrackdemo/YoutrackDemo",
"created_at": "2019-01-07T17:46:27.547Z",
"default_branch": null,
"tag_list": [],
"ssh_url_to_repo": "git@selfhosted-git.com:youtrackdemo/YoutrackDemo.git",
"http_url_to_repo": "http://selfhosted-git.com/youtrackdemo/YoutrackDemo.git",
"web_url": "http://selfhosted-git.com/youtrackdemo/YoutrackDemo",
"readme_url": null,
"avatar_url": null,
"star_count": 0,
"forks_count": 0,
"last_activity_at": "2019-01-07T17:46:27.547Z"
}
]
- change project path in gitlab in settings->advanced->rename repository->path to "youtrackdemo"
- try again to add integration in youtrack
- success
- new sniff looks like this
[{
"id": 49,
"description": "",
"name": "YoutrackDemo",
"name_with_namespace": "youtrackdemo / YoutrackDemo",
"path": "youtrackdemo",
"path_with_namespace": "youtrackdemo/youtrackdemo",
"created_at": "2019-01-07T17:46:27.547Z",
"default_branch": null,
"tag_list": [],
"ssh_url_to_repo": "git@selfhosted-git.com:youtrackdemo/youtrackdemo.git",
"http_url_to_repo": "http://selfhosted-git.com/youtrackdemo/youtrackdemo.git",
"web_url": "http://selfhosted-git.com/youtrackdemo/youtrackdemo",
"readme_url": null,
"avatar_url": null,
"star_count": 0,
"forks_count": 0,
"last_activity_at": "2019-01-07T17:46:27.547Z"
}
]
What is the expected result?
No error while adding existing GitLab repository, that has uppercase letters
What happens instead?
"The specified URL does not point to a GitLab repository." error shows up
Please provide any additional information below.
maybe bug is in findFirst IWhereFilter, where "path_with_namespace" field(that contains uppercase letters) is compared with normalized, lowercased "path" variable in GitLabRest file (youtrack-github-integration-2018.4 jar file), method getRepoId.