500 Encoding Error
when viewing commit history in UI
Description
- When attempting to view the commit history for a branch in a project, the user receives the following 500 error in the UI:
Encoding Error - Page can't be loaded because of an encoding error.
Environment
-
Repository has a tag applied that contains a UTF-8 character (example:
tést
) -
Impacted offerings:
- GitLab Self-Managed
-
Impacted versions:
- 15.10 to 15.11
Solution
Option A:
- Update the instance to version 16.0 or later
Option B:
- Remove the tag containing UTF-8 characters from the repository
Workaround
Use the git log
command to manually view the branch's history from the command line
Cause
Tags with UTF-8 characters, i.e. "tést", raise an exception on the commit history page due to improper encoding