{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8290","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8290/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8290/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8290/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/8290","id":48488067,"number":8290,"title":"Can't access projects by NAMESPACE/PROJECT_NAME in API","user":{"login":"rhymoid","id":3854516,"avatar_url":"https://avatars.githubusercontent.com/u/3854516?v=3","gravatar_id":"","url":"https://api.github.com/users/rhymoid","html_url":"https://github.com/rhymoid","followers_url":"https://api.github.com/users/rhymoid/followers","following_url":"https://api.github.com/users/rhymoid/following{/other_user}","gists_url":"https://api.github.com/users/rhymoid/gists{/gist_id}","starred_url":"https://api.github.com/users/rhymoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhymoid/subscriptions","organizations_url":"https://api.github.com/users/rhymoid/orgs","repos_url":"https://api.github.com/users/rhymoid/repos","events_url":"https://api.github.com/users/rhymoid/events{/privacy}","received_events_url":"https://api.github.com/users/rhymoid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/labels/API","name":"API","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":49,"created_at":"2014-11-12T09:09:17Z","updated_at":"2015-08-01T15:32:49Z","closed_at":"2015-04-13T14:07:25Z","body":"The [API docs for the `/projects/:id` endpoint](http://doc.gitlab.com/ce/api/projects.html#get-single-project) mention:\r\n\r\n> 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`).\r\n\r\nThis seems to be incorrect;\r\n\r\n* `/projects/24` works (where `24` is the numeric ID of `not_my_namespace/some_project`, which is accessible by the API user, but not owned by them).\r\n* `/projects/42` works (where `42` is the numeric ID of `personal_space/some_project`, of which the API user is the owner).\r\n* `/projects/not_my_namespace%2Fsome_project` gives a 404.\r\n* `/projects/personal_space%2Fsome_project` gives a 404.\r\n* The above URLs give a 404 no matter how many characters I percent-encode (so this is *not* a duplicate of #6954).\r\n\r\nIn conclusion: **it appears you can't identify projects by name**.\r\n\r\n---\r\n\r\nThis bug was identified in [GitLab 7.1.1](https://github.com/gitlabhq/gitlabhq/releases/tag/v7.1.1). I'd expect this feature to be available in that version, since #6954 predates that release."},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/126928481","html_url":"https://github.com/gitlabhq/gitlabhq/issues/8290#issuecomment-126928481","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8290","id":126928481,"user":{"login":"letusfly85","id":1466545,"avatar_url":"https://avatars.githubusercontent.com/u/1466545?v=3","gravatar_id":"","url":"https://api.github.com/users/letusfly85","html_url":"https://github.com/letusfly85","followers_url":"https://api.github.com/users/letusfly85/followers","following_url":"https://api.github.com/users/letusfly85/following{/other_user}","gists_url":"https://api.github.com/users/letusfly85/gists{/gist_id}","starred_url":"https://api.github.com/users/letusfly85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letusfly85/subscriptions","organizations_url":"https://api.github.com/users/letusfly85/orgs","repos_url":"https://api.github.com/users/letusfly85/repos","events_url":"https://api.github.com/users/letusfly85/events{/privacy}","received_events_url":"https://api.github.com/users/letusfly85/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T15:32:49Z","updated_at":"2015-08-01T15:32:49Z","body":"@Bugagazavr @stanhu \r\n\r\nand below are successful\r\n\r\n```\r\ncurl  --insecure --header \"PRIVATE-TOKEN: j6tgkyUM9uhBr8-3jgCx\"  -XGET \"https://my.gitlab.com/gitlab/api/v3/projects/293\"\r\n```\r\n\r\n```\r\ncurl  --insecure --header \"Authorization: Bearer 0f46ec326cc171fe31c438d55447872663b55976c9db86715751e6f8bbd53334\"  -XGET \"https://my.gitlab.com/gitlab/api/v3/projects/293\"\r\n```"}}