Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8290

Closed
Open
Created Nov 12, 2014 by Administrator@rootOwner

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 (where 24 is the numeric ID of not_my_namespace/some_project, which is accessible by the API user, but not owned by them).
  • /projects/42 works (where 42 is the numeric ID of personal_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.

Assignee
Assign to
Time tracking