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

Code search broken #28607

Closed
denyskon opened this issue Dec 24, 2023 · 2 comments
Closed

Code search broken #28607

denyskon opened this issue Dec 24, 2023 · 2 comments
Labels
Milestone

Comments

@denyskon
Copy link
Member

Description

When trying to search for code on any section of the site (explore, org, repo) the following error occurs:

An error occurred:

Render failed, failed to render template: repo/search, error: template error: builtin(bindata):repo/search:56:87 : executing "repo/search" at <Safe>: wrong type for value; expected string; got template.HTML
----------------------------------------------------------------------
												<td class="lines-code chroma"><code class="code-inner">{{.FormattedLines | Safe}}</code></td>
												                                                                           ^
----------------------------------------------------------------------

Gitea Version

1.21.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

Rootful docker image

Database

SQLite

@denyskon denyskon added this to the 1.21.4 milestone Dec 24, 2023
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Dec 24, 2023

As the bug report template says:

3. Make sure you are using the latest release and
take a moment to check that your issue hasn't been reported before.

It should have been fixed by " Fix 500 error of searching commits (#28576) #28579 " in 1.21 nightly.

Sorry for the bug.

@denyskon
Copy link
Member Author

You're right, sorry for not checking the already closed issues. Thank you for the fix :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants