Skip to content

"followers" & "following" is a valid repository name #10195

@ghost

Description

  • Gitea version (or commit ref): 1.11.0+dev-534-ga864d61ee
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

Gitea uses the URL https://try.gitea.io/imtestingthis/followers to display my followers, and https://try.gitea.io/imtestingthis/following to display who I follow.

It is possible to create a repository called followers or following. In this case you cannot view the repository's content as the user's followers/following list appears instead. It is still possible to go to a repository's subpages such as issues, wiki, etc.

Solutions

  1. Disallow the creation of repositories called followers and following.
  2. Use https://try.gitea.io/imtestingthis?followers and https://try.gitea.io/imtestingthis?following as a URL for those pages. This would be consistent with other profile actions such as https://try.gitea.io/imtestingthis?tab=activity .

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions