Gogs: Internal Server error when trying to open a Pull Request whose title contains an emoji

Created on 20 Dec 2018  路  3Comments  路  Source: gogs/gogs

Describe the bug
When opening a Pull Request with an emoji in its title, you get an Internal Server Error (500).

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Pull Request
  2. Insert an emoji in the title
  3. Click on Create Pull Request

Expected behavior
A pull request should be created.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
The following error is thrown from the server:

2018/12/19 23:22:56 [ERROR] [...g/context/context.go:179 ServerError()] NewPullRequest: newIssue: Error 1366: Incorrect string value: '\xF0\x9F\x8E\x89 A.    ..' for column 'name' at row 1
  • Gogs version (or commit ref): 0.11.66.0916
  • Git version: irrelevant
  • Operating system: Debian (Using the official gogs docker image)
  • Database (replace [ ] with [x]):

    • [ ] PostgreSQL

    • [x] MySQL

    • [ ] MSSQL

    • [ ] SQLite

  • Can you reproduce the bug at https://try.gogs.io:

    • [x] Yes: provide example URL

    • [ ] No: explain why

  • Log gist (usually found in log/gogs.log):
馃拪 bug

Most helpful comment

Screenshots
alt text
alt text

All 3 comments

image

Sorry for the delay.

Yes this error can be reproduced on try.gogs.io. The Example URL for this case would be https://try.gogs.io/blabla123/TestRepo/compare/master...blabla123:testfile

Screenshots
alt text
alt text

Was this page helpful?
0 / 5 - 0 ratings

Related issues

baikangwang picture baikangwang  路  3Comments

Lord0 picture Lord0  路  3Comments

ceeji picture ceeji  路  3Comments

rugk picture rugk  路  3Comments

sbarre-esit picture sbarre-esit  路  3Comments