Error on api/archive using NAMESPACE/PROJECT_NAME as ID
I'm trying to download repository archives from the API as described in the doc.
But instead of using the numeric ID
of the project, I need to use the string NAMESPACE/PROJECT_NAME
as described in the doc
The URL like the following return an error 404. It should return the project archive:
http://gitlab.mycompany.com/api/v3/projects/foo%2Fbar/repository/archive.zip?sha=87a5db5ea887763fa3a31a5471b512ff1596d9b8
{
"message": "404 Project Not Found"
}
Similar requests for /tags
or /branches
works fine with the string NAMESPACE/PROJECT_NAME
.
It works if I the archive using the numeric ID
of the project.
Is there something missing to convert the string NAMESPACE/PROJECT_NAME
to the numeric ID
for /archive
URLs ?
gitlab:env:info
System information
System: Debian 7.4
Current User: git
Using RVM: yes
RVM Version: 1.25.17
Ruby Version: 2.1.8p421
Gem Version: 2.5.0
Bundler Version:1.10.6
Rake Version: 10.4.2
Sidekiq Version:3.3.0
GitLab information
Version: 8.1.4
Revision: 4d7216a
Directory: /space/home/git/gitlab
DB Adapter: mysql2
URL: http://gitlab.mycompany.com
HTTP Clone URL: http://gitlab.mycompany.com/some-group/some-project.git
SSH Clone URL: git@gitlab.mycompany.com:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 2.6.5
Repositories: /space/home/git/repositories/
Hooks: /space/home/git/gitlab-shell/hooks/
Git: /usr/local/bin/git