V7.7 Error 500 with UTF8 & Special Characters!
Created by: ghost
- Summary: Gitlab 7.7.2 ActionView component returns an Error 500 irelated to UTF8 encoding whenever it encounters a special character like 'ç'.
-
Steps to reproduce:
This issue happens when trying to perform the following actions
- Displaying the file tree of a Branch
- Displaying the commit list of the branch
- Displaying the network of a branch
- Displaying the the graph of a branch
- Displaying the compare new merge request page
-
Displaying File Tree:
- Expected behavior: displying the file tree of a branch including commits data.
- Observed behavior: The commit data column keep displaying "loading data" message
-
Relevant logs:
Processing by Projects::RefsController#logs_tree as JS Parameters: {"_"=>"1422632454051", "project_id"=>"apis/api-exposure-layer", "id"=>"master"} Completed 500 Internal Server Error in 325ms ActionView::Template::Error (invalid byte sequence in UTF-8): 1: %span.str-truncated 2: %span.tree_author= commit_author_link(commit, avatar: true, size: 16) 3: = link_to_gfm commit.title, project_commit_path(@project, commit.id), class: "tree-commit-link" This seems to suggest that the (invalid byte sequence in UTF-8) is located
-
Displaying compare branches in merge request:
- Expected behavior: displying the page that compares branches involved in merge request
- Observed behavior: A blank pange with the error 500 is displayed
-
Relevant logs:
Completed 500 Internal Server Error in 220ms ActionView::Template::Error (invalid byte sequence in UTF-8): 26: = preserve(gfm(escape_once(commit.description))) 27: 28: .commit-row-info 29: = commit_author_link(commit, avatar: true, size: 16) 30: .committed_ago 31: #{time_ago_with_tooltip(commit.committed_date)}
-
Displaying the commit list of the branch:
- Expected behavior: displying the list of commits of a branch
- Observed behavior: The commit data column keep displaying "loading data" message
-
Relevant logs:
*Completed 500 Internal Server Error in 233ms
ActionView::Template::Error (invalid byte sequence in UTF-8): 26: = preserve(gfm(escape_once(commit.description))) 27: 28: .commit-row-info 29: = commit_author_link(commit, avatar: true, size: 16) 30: .committed_ago 31: #{time_ago_with_tooltip(commit.committed_date)}
-
Displaying the network of a branch:
- Expected behavior: displying thenetwork of a branch
- Observed behavior: blank page
- Relevant logs:
Completed 500 Internal Server Error in 2003ms ActionView::Template::Error (source sequence is illegal/malformed utf-8): app/views/projects/network/show.json.erb:22:in
_app_views_projects_network_show_json_erb__4224933065517375966_111137440'`
-
Displaying the graph of a branch:
- Expected behavior: displying the graph of a branch
- Observed behavior: blank page
-
Relevant logs and/or screenshots:
Completed 500 Internal Server Error in 163ms JSON::GeneratorError (source sequence is illegal/malformed utf-8): app/controllers/projects/graphs_controller.rb:37:in
fetch_graph' app/controllers/projects/graphs_controller.rb:10:inblock (2 levels) in show' app/controllers/projects/graphs_controller.rb:7:in
show'`
-
Output of checks
- GitLab Version: 7.7.2
- Last commit SHA-1: bd982900
-
System Information:
System: CentOS 6.5 Current User: git Using RVM: no Ruby Version: 2.1.4p265 Gem Version: 2.2.1 Bundler Version:1.5.3 Rake Version: 10.3.2 Sidekiq Version:2.17.8
- Results of GitLab [Application Check]:
Checking Environment ... Git configured for git user? ... yes Checking Environment ... Finished Checking GitLab Shell ... GitLab Shell version >= 2.4.2 ? ... OK (2.4.2) Repo base directory exists? ... yes Repo base directory is a symlink? ... no Repo base owned by git:git? ... yes Repo base access is drwxrws---? ... yes Satellites access is drwxr-x---? ... yes hooks directories in repos are links: ... 3/1 ... repository is empty 3/3 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Check directories and files: /var/opt/gitlab/git-data/repositories: OK /var/opt/gitlab/.ssh/authorized_keys: OK Test redis-cli executable: redis-cli 2.8.2 Send ping to redis server: PONG gitlab-shell self-check successful Checking GitLab Shell ... Finished Checking Sidekiq ... Running? ... yes Number of Sidekiq processes ... 1 Checking Sidekiq ... Finished Checking LDAP ... LDAP is disabled in config/gitlab.yml Checking LDAP ... Finished Checking GitLab ... Database config exists? ... yes Database is SQLite ... no All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) projects have namespace: ... 3/1 ... yes 3/3 ... yes Projects have satellites? ... 3/1 ... can't create, repository is empty 3/3 ... yes Redis version >= 2.0.0? ... yes Ruby version >= 2.0.0 ? ... yes (2.1.4) Your git bin path is /opt/gitlab/embedded/bin/git Git version >= 1.7.10 ? ... yes (2.0.5) Checking GitLab ... Finished