Closed
Description
Description
I have one odd issue with code search where results from some repos do not show up in the global code search or the organization code search. The user is member of the default Owners
team of two repos, let's call them org1/repo1
and org2/repo2
.
- Both repos are private
- Both orgs are private
- Both repos have the exact same settings in the UI
- Both repos contain string
query
in one of their files
/org1/repo1/search?q=query
shows results
/org2/repo2/search?q=query
shows results
/org1/-/code?q=query
shows results
/org2/-/code?q=query
show NO results
/explore/code?q=query
shows NO results from repo2
, only from repo1
- Giving the user admin permission fixes the issue
- Adding the user to
repo2
as collaborator fixes the issue - Switching
repo2
to public access fixes the issue - Switching
org2
to public access has no effect
There is probably still some difference in these repos in the database, but I'm not sure what to look at. Any pointers appreciated on what to look for.
Gitea Version
1.19.0+rc1-37-g0a0f46f29
Can you reproduce the bug on the Gitea demo site?
No
Database
MySQL