Search not working for administrator #3450

Closed
opened 2025-11-02 05:13:16 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @salco on GitHub (Jun 10, 2019).

  • Gitea version (or commit ref): 1.8.0
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Since I'm not administrator
    • Not relevant

Description

On my setup I activated the indexer.
Everything work fine for a normal user, I can search repo. and search for code inside them. But for user with administrator right (for the gitea server), they are unable to search anything.

So to resume, search for normal user work fine but search for administrator user doesn't work.
I put a screenshot of the result for administrator and one for the normal user.

Can it be an issue in how the search work?
...

Screenshots

Administrator

searchAdmin

Normal user

searchNormal

Originally created by @salco on GitHub (Jun 10, 2019). - Gitea version (or commit ref): 1.8.0 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - Since I'm not administrator - [ ] Not relevant ## Description On my setup I activated the indexer. Everything work fine for a normal user, I can search repo. and search for code inside them. But for user with administrator right (for the gitea server), they are unable to search anything. So to resume, search for normal user work fine but search for administrator user doesn't work. I put a screenshot of the result for administrator and one for the normal user. Can it be an issue in how the search work? ... ## Screenshots ### Administrator ![searchAdmin](https://i.imgur.com/Sqz2GcH.png) ### Normal user ![searchNormal](https://i.imgur.com/NuZqcej.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/stale label 2025-11-02 05:13:16 -06:00
Author
Owner

@lunny commented on GitHub (Jun 10, 2019):

Any logs on gitea server?

@lunny commented on GitHub (Jun 10, 2019): Any logs on gitea server?
Author
Owner

@salco commented on GitHub (Jun 10, 2019):

I've tested with admin and normal and there is the result.
The log doesn't show anything different.

2019/06/10 12:56:35 [D] CSRF Token: eLYwtqlAUfxmpqJ4rW04cnTNOfY6MTU2MDE4NTM3ODQwNTYwMTMxNg==
2019/06/10 12:56:35 [D] Template: pwa/serviceworker_js
2019/06/10 12:56:35 [D] Template: pwa/manifest_json
2019/06/10 12:56:51 [D] Session ID: 0f7ba8d7d0d338ba
2019/06/10 12:56:51 [D] CSRF Token: izTZ5xmOAJPaNbEVpYtE9BtqujY6MTU2MDE2OTQxODg3MDY3NDIxOQ==
2019/06/10 12:56:51 [D] Template: org/home
2019/06/10 12:56:51 [D] Session ID: 0f7ba8d7d0d338ba
2019/06/10 12:56:51 [D] CSRF Token: izTZ5xmOAJPaNbEVpYtE9BtqujY6MTU2MDE2OTQxODg3MDY3NDIxOQ==
2019/06/10 12:56:51 [D] Template: pwa/manifest_json
2019/06/10 12:56:53 [D] Session ID: 0f7ba8d7d0d338ba
2019/06/10 12:56:53 [D] CSRF Token: izTZ5xmOAJPaNbEVpYtE9BtqujY6MTU2MDE2OTQxODg3MDY3NDIxOQ==
2019/06/10 12:56:53 [D] Template: pwa/serviceworker_js
@salco commented on GitHub (Jun 10, 2019): I've tested with admin and normal and there is the result. The log doesn't show anything different. ``` 2019/06/10 12:56:35 [D] CSRF Token: eLYwtqlAUfxmpqJ4rW04cnTNOfY6MTU2MDE4NTM3ODQwNTYwMTMxNg== 2019/06/10 12:56:35 [D] Template: pwa/serviceworker_js 2019/06/10 12:56:35 [D] Template: pwa/manifest_json 2019/06/10 12:56:51 [D] Session ID: 0f7ba8d7d0d338ba 2019/06/10 12:56:51 [D] CSRF Token: izTZ5xmOAJPaNbEVpYtE9BtqujY6MTU2MDE2OTQxODg3MDY3NDIxOQ== 2019/06/10 12:56:51 [D] Template: org/home 2019/06/10 12:56:51 [D] Session ID: 0f7ba8d7d0d338ba 2019/06/10 12:56:51 [D] CSRF Token: izTZ5xmOAJPaNbEVpYtE9BtqujY6MTU2MDE2OTQxODg3MDY3NDIxOQ== 2019/06/10 12:56:51 [D] Template: pwa/manifest_json 2019/06/10 12:56:53 [D] Session ID: 0f7ba8d7d0d338ba 2019/06/10 12:56:53 [D] CSRF Token: izTZ5xmOAJPaNbEVpYtE9BtqujY6MTU2MDE2OTQxODg3MDY3NDIxOQ== 2019/06/10 12:56:53 [D] Template: pwa/serviceworker_js ```
Author
Owner

@lunny commented on GitHub (Jun 11, 2019):

It seems you didn't paste routes log?

@lunny commented on GitHub (Jun 11, 2019): It seems you didn't paste routes log?
Author
Owner

@stale[bot] commented on GitHub (Aug 10, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Aug 10, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Aug 24, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Aug 24, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3450