gitlabhq/gitlabhq — Issue #299: Error 500 on commit view (incompatible character)
Author: p0123n
Created: 2012-01-16 11:37:46+00:00
State: open

Rendered commits/show.html.haml within layouts/project (267.7ms)
Completed 500 Internal Server Error in 281ms

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):
16: .diff_file_content
17: - if file.text?
18: = render :partial => "commits/text_file", :locals => { :diff => diff, :index => i }
19: - elsif file.image?
20: .diff_file_content_image
21: %img{:src => "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"}
22: - else
app/views/commits/_diff.html.haml:19:in `block in _app_views_commits__diff_html_haml___2540800824834184374_46788400'
app/views/commits/_diff.html.haml:4:in `each'
app/views/commits/_diff.html.haml:4:in `each_with_index'
app/views/commits/_diff.html.haml:4:in `_app_views_commits__diff_html_haml___2540800824834184374_46788400'
app/views/commits/show.html.haml:25:in `_app_views_commits_show_html_haml___4151098555950872972_52921260'
app/controllers/commits_controller.rb:30:in `show'