Error 500 when opening the "commits" tab of a repo.
Created by: scaryzet
I've pushed a new repo (previously hosted on gitosis) and when I'm trying to view the list of commits, I'm getting error 500. It's saying "Encoding Error. Page can't be loaded because of an encoding error."
I think the reason is that there are some commits with "bad" usernames in the repo. They show up as Author: unknown <<D1><E0><E2><E5><EB><E8><E9>@2PHP.(none)>
in the output of git log
.
We're on 4.1 stable.
Here's the error log:
Started GET "/username/repo/commits/master" for 127.0.0.1 at 2013-02-13 11:51:40 +0400
Processing by CommitsController#show as HTML
Parameters: {"project_id"=>"username/repo", "id"=>"master"}
Rendered shared/_ref_switcher.html.haml (1.5ms)
Rendered commits/_head.html.haml (5.1ms)
Rendered commits/_commit.html.haml (6.8ms)
Rendered commits/_commit.html.haml (2.0ms)
Rendered commits/_commits.html.haml (14.8ms)
Rendered commits/show.html.haml within layouts/project_resource (20.5ms)
Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
app/views/commits/_commit.html.haml:1:in `_app_views_commits__commit_html_haml__1519872021119091620_34791860'
app/views/commits/_commits.html.haml:6:in `block in _app_views_commits__commits_html_haml__2150839068330274607_34621020'
app/views/commits/_commits.html.haml:1:in `each'
app/views/commits/_commits.html.haml:1:in `_app_views_commits__commits_html_haml__2150839068330274607_34621020'
app/views/commits/show.html.haml:8:in `_app_views_commits_show_html_haml__711792529393499623_33777560'
app/controllers/commits_controller.rb:18:in `show'
Rendered errors/encoding.html.haml within layouts/errors (0.1ms)
Rendered layouts/_head.html.haml (1.4ms)
Rendered layouts/_flash.html.haml (0.1ms)
Rendered layouts/_search.html.haml (15.8ms)
Rendered layouts/_init_auto_complete.html.haml (3.8ms)
Rendered layouts/_head_panel.html.haml (23.1ms)
Completed 500 Internal Server Error in 83ms (Views: 24.9ms | ActiveRecord: 1.8ms)