[Bug] 500 error when searching issues with type=your_repository #6744

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

Originally created by @kdumontnu on GitHub (Jan 24, 2021).

Description

When searching issues from my user page (i.e. title-bar -> Issues -> Search, searching anything returns a 500 error for me. I've tested this locally and on the try.gitea server.

When I run locally with debug logging I get the following additional output:
GetRepoIDsForIssuesOptions: pq: table name "repository" specified more than once
From the logs attached, it appears this is returned from routers/user/home.go:453:buildIssueOverview()

Screenshots

image

Originally created by @kdumontnu on GitHub (Jan 24, 2021). - Gitea version (or commit ref): 1.14.0+dev-604-gbc05ddc0e - Git version: - Operating system: Windows - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [X] Yes https://try.gitea.io/issues?type=your_repositories&repos=%5B%5D&sort=&state=open&q=test - [ ] No - Log gist: https://gist.github.com/kdumontnu/36b418034d7546da09eaed066450627e ## Description When searching issues from my user page (i.e. title-bar -> Issues -> Search, searching anything returns a 500 error for me. I've tested this locally and on the try.gitea server. When I run locally with debug logging I get the following additional output: `GetRepoIDsForIssuesOptions: pq: table name "repository" specified more than once` From the logs attached, it appears this is returned from `routers/user/home.go:453:buildIssueOverview()` ## Screenshots ![image](https://user-images.githubusercontent.com/12700993/105641294-662bda80-5e40-11eb-8fc5-fb33d588b0b2.png)
GiteaMirror added the type/bug label 2025-11-02 07:05:16 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6744