Skip to content

5000 commenting on a line with accented chars #10393

@rlogiacco

Description

@rlogiacco
  • Gitea version (or commit ref): 1.11.1
  • Git version:
  • Operating system: linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Commenting on a pull request on a line containing accented characters produces a 500 error with the following log:

2020/02/21 10:48:46 .../repo/pull_review.go:48:CreateCodeComment() [E] CreateCodeComment: Error 1366: Incorrect string value: '\xE8 vali...' for column 'patch' at row 1

The line this comment was pointing at is

			throw new Exception("ATTENZIONE: La Sessione HTTP non è valida");

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/duplicateThe issue has already been reported.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions