Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access repo Home: You are not allowed to access any section of this repository. #5253

Closed
2 of 7 tasks
shadowsingle opened this issue Nov 2, 2018 · 2 comments
Closed
2 of 7 tasks

Comments

@shadowsingle
Copy link

  • Gitea version (or commit ref):
    v1.5.x v1.4.x v1.2.x
  • Git version:
    git 1:2.11.0-3
  • Operating system:
    debian 9.5
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    http:https://paste.ubuntu.com.cn/4364718

Description

1、./gitea web
2、 init data and create first users
3、 create repo (jump 404 website )
4、click repo url the problem is still.

add trace code in view.go
http:https://paste.ubuntu.com.cn/4364715
and i found the len(ctx.Repo.Repository.Units) is 0 .
but i found the table (repo_unit ) on database that can found 5 record.

Screenshots

x

@shadowsingle
Copy link
Author

2018/11/02 12:09:36 [T] home ctx: {Context:0xc209065320 Cache:0xc2084957d0 csrf:0xc20a5bb000 Flash:0xc2094f3220 Session:{RawStore:0xc20a589b80 Manager:0xc20992f0e0} Link:/deepin/dx EscapedLink: User:0xc2090a0200 IsSigned:true IsBasicAuth:false Repo:0xc20972d2b0 Org:0xc209948120} len units: 0
2018/11/02 12:09:36 [T] home repo: {AccessMode:owner IsWatching:false IsViewBranch:true IsViewTag:false IsViewCommit:false Repository:0xc208ca5080 Owner:0xc2090a0200 Commit:0xc20a6211e0 Tag: GitRepo:0xc20a654ce0 BranchName:master TagName: TreePath: CommitID:a5e79a3f6af912077a13a314d5a2c17920ec22e1 RepoLink:/deepin/dx CloneLink:{SSH: HTTPS: Git:} CommitsCount:1 Mirror: PullRequest:0xc20a626920}
2018/11/02 12:09:36 [T] home repository: {ID:1 OwnerID:1 OwnerName:deepin Owner:0xc2090a0200 LowerName:dx Name:dx Description:askdjalkdf Website: DefaultBranch:master NumWatches:1 NumStars:0 NumForks:0 NumIssues:0 NumClosedIssues:0 NumOpenIssues:0 NumPulls:0 NumClosedPulls:0 NumOpenPulls:0 NumMilestones:0 NumClosedMilestones:0 NumOpenMilestones:0 NumReleases:0 IsPrivate:false IsBare:false IsMirror:false Mirror: ExternalMetas:map[] Units:[] IsFork:false ForkID:0 BaseRepo: Size:0 IndexerStatus: IsFsckEnabled:false Topics:[] CreatedUnix:1541125852 UpdatedUnix:1541125857}
2018/11/02 12:09:36 [...routers/repo/VIEW.go:306 Home()] [E] Home: You are NOT allowed TO access any section of this repository.
2018/11/02 12:09:36 [D] Template: STATUS/404
[Macaron] 2018-11-02 12:09:36: Completed GET /deepin/dx 404 NOT Found IN 190.167384ms

@lunny
Copy link
Member

lunny commented Nov 28, 2018

should be fixed by #5314 , close now and please feel free to reopen.

@lunny lunny closed this as completed Nov 28, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants