-
-
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
«Internal server error» on simple URL mangling #27176
Comments
How do you get Which page were you visiting? |
@wxiaoguang yepp, it should not - it was my typo. I don't insist that this behaviour is incorrect, but it's quite strange to get 500 on mere URL typo. |
If you see it again, could you navigate your browser back and try to figure out where the URL comes from? |
@wxiaoguang it was literally typo - it was me who have entered wrong URL. In humble attempt to filter issues… |
Hmm .... I see .... I understand your meaning of "I don't insist that this behaviour is incorrect, but it's quite strange to get 500 on mere URL typo." now. So I guess this behavior could also considers as "by design" but not a bug? 😄 At least, the server told you that the input causes errors ..... |
@wxiaoguang yes, it tald :) But I'd prefer a bit less offensive way over "error 500" that made me jump and look at the box it's ran on. At least in semantics of the HTTP codes, it should be 400 "Bad Request", and not 500. |
That's a longstanding problem in Gitea: there are a lot of unnecessary 500 responses. I am afraid such behavior is nearly impossible to get a complete fix at the moment. |
Well, I tried my best, you know the rest. |
There is another "500" |
@wxiaoguang |
Maybe a PR returned 400 is a better choice. |
-> Refactor StringsToInt64s #29967 |
Description
I tried (occasionally) to get to URL like
https://example.com/gitea/issues?labels=!30
and got error 500.System journal has few lines for it (for
gitea.service
):Gitea Version
Gitea version 1.19.3 built with GNU Make 4.1, go1.20.4 : bindata, sqlite, sqlite_unlock_notify
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Ubuntu 22.04.1 LTS
How are you running Gitea?
Gitea is ran on premise, at home.
Cannot verify try.gitiea.io -- registration pending.
Database
SQLite
The text was updated successfully, but these errors were encountered: