When uploading a cohort with special characters in its description, the upload form works fine.
But from there on, all cohort/list requests fail because of encoding conversion problems. Ha!
Description
Details
Related Objects
Event Timeline
Just to make it clear, "special characters" means most likely any non-Latin 1 character.
Change 215200 had a related patch set uploaded (by Mforns):
Fix cohort description utf8 bug
So Kevin discovered that the cohorts that have special characters in its descriptions are still crashing Wikimetrics.
Namely, all reports on those kind of cohorts are not working. When launching them, Wikimetrics alerts with the following error:
Error! Wikimetrics is experiencing problems. Visit the Support page for help if this persists. You can also check the console for details.
Change 217315 had a related patch set uploaded (by Mforns):
Fix cohort description utf8 bug (2)
I tested it it staging and then deployed to production... and boom! It crashed in report_list.
The problem is that db collations are different in vagrant/staging vs. production.
The swedish_latin1 collation in vagrant/staging was masking a problem and made it difficult to identify in our tests.
When deployed to production (utf8_general_ci) the issue becomes evident.
Next step: Change the column type of report.parameters to varbinary, via a migration.
This should fix the issue.
Change 219373 had a related patch set uploaded (by Mforns):
Fix cohort description utf8 bug (3)