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
  • Merge requests
  • !8172

Closed
Created Oct 26, 2014 by Administrator@rootOwner
  • Report abuse
Report abuse

Stop blacklisting project path

  • Overview 4
  • Commits 1
  • Changes 3

Created by: cirosantilli

Before this PR, all project paths at: https://github.com/gitlabhq/gitlabhq/blob/199029b842de7c9d52b5c95bdc1cc897da8e5560/lib/gitlab/blacklist.rb were forbidden.

This PR removes that restriction, keeping it only for namespaces where it is required.

The restriction is not necessary and just creates more exception cases that can annoy users.

The blacklist was used here because of the fear of conflicting an URLs like /groupname/issues for two possible uses:

  1. all issues of the group
  2. a project called issues

however case 1 is impossible since:

  • all group URLs are prefixed by /group (e.g. /group/groupname/issues), except the base /groupname which redirects to /group/groupname

  • currently URLs like /groupname/issues don't redirect to /group/groupname/issues and give 404 instead.

    This is sane and should not be undone in the future, or else we would have problems whenever we want to add a new path to the blacklist.

This is also the URL strategy used by GitHub.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/cirosantilli/stop-blacklist-project-path