-
Notifications
You must be signed in to change notification settings - Fork 70
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
Forum returns 5xx when search term includes "(" or ")" #312
Comments
This answers the malformed MATCH expression: https://stackoverflow.com/questions/11708736/sqlite-match-operator |
Wow, this is really interesting. I was wondering how the forum was crashing here, turns out it doesn't. I'm not quite sure why CloudFlare returns a 502 after the search with a "(" but it seems to be browser-local. You can test this yourself by doing the search with "(" in Firefox, waiting as long as you want, opening the forum in Chrome (it will load), then clicking the home button in Firefox (and you'll see the 502 from CloudFlare). I guess maybe CloudFlare is doing some stupid caching here based on the session. But the forum certainly doesn't crash so the bug ain't that critical :) |
Definitely there is something going on, testing from curl, I get the error with traceback (unless that is the actual expected behavior).
|
Maybe something like groue/GRDB.swift#129 (comment) be good enough? |
So what should we do? I've already proposed to replace parentheses and also an automatic fix for missing parentheses... We can also just catch a DbError and give no results but it's not up to me which version is chosen I guess. |
Source
I have tested it and it really crashes.
The text was updated successfully, but these errors were encountered: