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 internal server error when using emoji in issue. #9336

Closed
2 of 8 tasks
devgar opened this issue Dec 12, 2019 · 2 comments
Closed
2 of 8 tasks

500 internal server error when using emoji in issue. #9336

devgar opened this issue Dec 12, 2019 · 2 comments
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Comments

@devgar
Copy link

devgar commented Dec 12, 2019

  • Gitea version (or commit ref): 1.9.4

  • Git version: 2.17.1

  • Operating system: Ubuntu 18.04 (server) MacOs 10.15.1 (client) Chrome Browser

  • Database (use [x]):

    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:

    • Yes (provide example URL)
    • No
    • Not relevant
    • I Couldn't log in
  • Log gist:

Description

Got a 500 error when creating an issue label with an emoji as label.
Algo got error when creating an issue with emoji as title.
Emojis are allowed in file content, also in file names.

Screenshots

Captura de pantalla 2019-12-12 a las 17 42 15
Captura de pantalla 2019-12-12 a las 18 02 05
Captura de pantalla 2019-12-12 a las 18 01 20

HTTP GENERAL

Request URL: https://git.edgarai.com/devgar/build-doc/issues/new
Request Method: POST
Status Code: 500 (from ServiceWorker)
Referrer Policy: no-referrer

RESPONSE HEADERS

content-type: text/html; charset=UTF-8
date: Thu, 12 Dec 2019 16:58:10 GMT
server: nginx/1.14.0 (Ubuntu)
status: 500
x-frame-options: SAMEORIGIN

REQUEST HEADERS

Provisional headers are shown
Content-Type: application/x-www-form-urlencoded
Origin: null
Sec-Fetch-User: ?1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1

FORM DATA

title: ▷Prueba
content:
ref:
search:
label_ids:
milestone_id:
assignee_ids:
(also includes a _csrf value what I suppose is a session thing)

@lafriks
Copy link
Member

lafriks commented Dec 12, 2019

I think problem could be in your mysql table encoding

@lunny
Copy link
Member

lunny commented Dec 13, 2019

You should use utf8mb4 but not utf8 in your mysql database.

@lunny lunny closed this as completed Dec 13, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
@delvh delvh added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed reviewed/invalid labels Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea
Projects
None yet
Development

No branches or pull requests

4 participants