Skip to content

Internal server error when adding review comment on file with ascii special characters #6236

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

Closed
lafriks opened this issue Mar 4, 2019 · 0 comments · Fixed by #7115
Closed
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug

Comments

@lafriks
Copy link
Member

lafriks commented Mar 4, 2019

Error in gitea.log:

[.../repo/pull_review.go:80 CreateCodeComment()] [E] CreateCodeComment: pq: invalid byte sequence for encoding "UTF8": 0xe2 0x75 0x7a

SQL that results in error:

INSERT INTO "comment" ("type","poster_id","issue_id","label_id","old_milestone_id","milestone_id","assignee_id","removed_assignee","old_title","new_title","dependent_issue_id","commit_id","line","tree_path","content","patch","created_unix","updated_unix","commit_sha","review_id","invalidated") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" []interface {}{21, 103, 2878, 0, 0, 0, 0, false, "", "", 0, 0, 9, "CHANGELOG.md", "Review comment", "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -6,6 +6,8 @@\n - J\xe2uzst\xe2da<removed sensitive info>", 1551688673, 1551688673, "d7f4ca6372d6a88886511329a70bf18e7fb7bdf3", 213, false}
@lafriks lafriks added type/bug issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented labels Mar 4, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant