Closed Bug 910855 Opened 11 years ago Closed 11 years ago

Searches containing non-english characters are causing the MakeAPI to 500

Categories

(Webmaker Graveyard :: Login, defect)

x86
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cade, Assigned: jon)

Details

Attachments

(1 file)

I'm seeing this error: { "error": { "code": "ER_CANT_AGGREGATE_", "index": 0 }, "code": 500 } research time!
Traced this to the login server: "GET /user/الفيس%20بك HTTP/1.1" 500 69 "-" "-"
Component: MakeAPI → Login
possible solution: `Sequelize.STRING + ' CHARSET utf8 COLLATE utf8_unicode_ci'` to the "username" column. This would require a migration script. Other than that, make an effort to not pass these kinds of strings into that system.
Waitwaitwait. You're saying that the login server doesn't support utf8? Lets fix that up!
Assignee: cade → jon
Nice catch Chris, I've changed the login db on prod and staging to be utf8: https://webmaker.org/en-US/search?type=title&q=%D8%A7%D9%84%D9%81%D9%8A%D8%B3+%D8%A8%D9%83 Patch incoming to make sure that this doesn't happen on local dev too
Attachment #797858 - Flags: review?(cade) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: