-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
org snippet caused 500 internal server error #17139
Comments
Thank you for providing a test case, however the logs would have been helpful too. |
Here is the relevant log:
|
OK looks like there is a panic: if _, err := w.WriteString(highlight.Code(lexer.Config().Filenames[0], source)); err != nil {
return ""
} likely the |
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Sep 24, 2021
When rendering source in org mode there is a mistake in the highlight code that causes a panic. This PR fixes this. Fix go-gitea#17139 Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Sep 24, 2021
Backport go-gitea#17140 When rendering source in org mode there is a mistake in the highlight code that causes a panic. This PR fixes this. Fix go-gitea#17139 Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath
added a commit
that referenced
this issue
Sep 24, 2021
When rendering source in org mode there is a mistake in the highlight code that causes a panic. This PR fixes this. Fix #17139 Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath
added a commit
that referenced
this issue
Sep 24, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Gitea Version
1.15.2
Git Version
No response
Operating System
No response
How are you running Gitea?
Helm chart.
Database
No response
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Description
A source block with
http
language modifier in org-mode file causes render failure with 500 internal server error for gitea-1.15.2. A demo is located at https://try.gitea.io/Iced-Sun/org/src/branch/master/test.org.It used to work on gitea-1.14.6 and before.
Screenshots
No response
The text was updated successfully, but these errors were encountered: