Skip to content
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

500 error when submitting a proposal using emoji in the title #2686

Open
1 of 2 tasks
Mariatta opened this issue Jul 28, 2020 · 2 comments
Open
1 of 2 tasks

500 error when submitting a proposal using emoji in the title #2686

Mariatta opened this issue Jul 28, 2020 · 2 comments
Labels
bug 🐛 Something is wrong and needs to be fixed

Comments

@Mariatta
Copy link

I'm submitting a ..

  • Bug Report
  • Feature Request

Current behavior:
I tried submitting a talk proposal to SeaGL (https://osem.seagl.org/conferences/seagl2020) and my talk title included an emoji. When I tried submitted the talk, I got a 500 error. When I removed the emoji from the title, it got submitted without issue.

Expected correct behavior:

It would be great if emoji would be allowed in the title. Alternatively, it would also be great if it would tell me that I should not include emoji in the title, instead of showing me the 500 error.

Steps to reproduce:

  1. Go to https://osem.seagl.org/conferences/seagl2020, and create a new proposal
  2. Enter a talk title including emoji.
  3. Submit the talk -> 500 error
  4. Go back, and remove emoji from the title.
  5. Submit the talk --> 200 OK

Other information:

@AndrewKvalheim
Copy link
Member

Thanks for reporting this. I've been unable to reproduce it when using PostgreSQL or SQLite, but using MySQL (as on SeaGL's instance) produces:

ActiveRecord::StatementInvalid (Mysql2::Error: Incorrect string value: '\xF0\x9F\x9A\x80' for column 'title' …)

Apparently MySQL's "utf8" type doesn't actually support UTF-8. Rails 6 corrects for that in new instances, but OSEM is still using Rails 5, and existing instances still need to go through a somewhat involved migration.

@hennevogel
Copy link
Member

See openSUSE/open-build-service#5419 for an inspiration how to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something is wrong and needs to be fixed
Projects
None yet
Development

No branches or pull requests

3 participants