Can't access projects by NAMESPACE/PROJECT_NAME in API
Closed
Can't access projects by NAMESPACE/PROJECT_NAME in API
Created by: ghost
The API docs for the /projects/:id
endpoint mention:
Get a specific project, identified by project ID or NAMESPACE/PROJECT_NAME, which is owned by the authenticated user. If using namespaced projects call make sure that the NAMESPACE/PROJECT_NAME is URL-encoded, eg.
/api/v3/projects/diaspora%2Fdiaspora
(where/
is represented by%2F
).
This seems to be incorrect;
-
/projects/24
works (where24
is the numeric ID ofnot_my_namespace/some_project
, which is accessible by the API user, but not owned by them). -
/projects/42
works (where42
is the numeric ID ofpersonal_space/some_project
, of which the API user is the owner). -
/projects/not_my_namespace%2Fsome_project
gives a 404. -
/projects/personal_space%2Fsome_project
gives a 404. - The above URLs give a 404 no matter how many characters I percent-encode (so this is not a duplicate of #6954 (closed)).
In conclusion: it appears you can't identify projects by name.
This bug was identified in GitLab 7.1.1. I'd expect this feature to be available in that version, since #6954 (closed) predates that release.
Please register or sign in to reply