404 on an organization's repo #814

Closed
opened 2025-11-02 03:37:38 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @mxmehl on GitHub (Jun 15, 2017).

Description

As a normal user, I receive an 404 every time I open an organization's repository. The repository is public, and when logged out I can visit it without any errors.

Log is attached. It seems to be an auth issue to me at some point. Thanks for looking into it!

Originally created by @mxmehl on GitHub (Jun 15, 2017). - Gitea version (or commit ref): 033aaf4 (latest master) - Git version: 2.1.4 - Operating system: Debian 8 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL): https://try.gitea.io/test123123123/test (not my org/repo) - [ ] No - [ ] Not relevant - Log gist: https://gist.github.com/mxmehl/d73cff00f556f034bb87d95ef9e8ea6c ## Description As a normal user, I receive an 404 every time I open an organization's repository. The repository is public, and when logged out I can visit it without any errors. Log is attached. It seems to be an auth issue to me at some point. Thanks for looking into it!
GiteaMirror added the type/bug label 2025-11-02 03:37:38 -06:00
Author
Owner

@mxmehl commented on GitHub (Jun 16, 2017):

Additional information: On the server the error occurs, it doesn't matter whether this normal user uses local authentication or LDAP (both are enabled). It also doesn't matter whether I just browse the repo's root or e.g. its issues.

When browsing /org/repo/src/master/README.md, I see a different error in the log:

2017/06/16 12:53:46 [...ules/context/repo.go:529 func1()] [E] CheckUnit: You are not allowed to visit this repository unit: 1

As admin, I can always see the repositories.

@mxmehl commented on GitHub (Jun 16, 2017): Additional information: On the server the error occurs, it doesn't matter whether this normal user uses local authentication or LDAP (both are enabled). It also doesn't matter whether I just browse the repo's root or e.g. its issues. When browsing /org/repo/src/master/README.md, I see a different error in the log: ``` 2017/06/16 12:53:46 [...ules/context/repo.go:529 func1()] [E] CheckUnit: You are not allowed to visit this repository unit: 1 ``` As admin, I can always see the repositories.
Author
Owner

@lunny commented on GitHub (Jun 16, 2017):

@mxmehl please confirm #1984 fix this.

@lunny commented on GitHub (Jun 16, 2017): @mxmehl please confirm #1984 fix this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#814