-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
[bug] 500 ISE on posting #1008
Comments
Thanks for reporting! That is an interesting one... Possibly a result of passing through a combination of libraries during string sanitizing. Will get on that :) |
Wild semi-educated guess: someone set an encoding validation library to replace with U+FFFD then checks for the presence of that to cause an error. Hm, though that’s not so likely to throw a 500. Maybe some component just dislikes them in the input. |
This looks like an error is being returned by the database, and then by https://github.com/uptrace/bun -- the ORM that we use. |
Nope, the database is fine:
Apparently, it even can serve this: https://toot.mirbsd.org/@mirabilos/statuses/01GHGKE8MFA1D894DDQTV6ZHQN |
Aha okay thanks! |
There were no instructions on with what parameters to create the database, so I just used sensible defaults:
The |
hey @mirabilos, can you still reproduce this one? just wanted to check on it |
I can post U+FFFD � now, in 0.10.0-rc3 git-f431974 (but I haven’t tested the over a million other codepoints). |
I'll close this now then, since we can't realistically test the million other codepoints. If it comes up again, we can reopen the issue. |
tobi dixit:
I'll close this now then, since we can't realistically test the million
other codepoints. If it comes up again, we can reopen the issue.
That’s what I was thinking, but I wanted to leave the actual closing
to you.
Thanks!
|
Describe the bug with a clear and concise description of what the bug is.
I get a 500 Internal Server Error on posting something.
Log:
The request (according to Firebug, or whatever this is called now) was:
I think you’re misprocessing the U+FFFD here.
What's your GoToSocial Version?
0.5.2 git-c31f219
GoToSocial Arch
amd64 binary
Browser version
firefox-esr 102.4.0esr-1~deb11u1
What happened?
500 instead of posting
What you expected to happen?
Posting instead of 500
How to reproduce it?
Post a single U+FFFD character, not even as reply, is sufficient.
I expect to be able to post all valid UCS codepoints, that is:
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: