Can't open files after upgrading to 4.0
Created by: fabianmenges
I can browse the directories of the repositories (File tab) but when I click on a file nothing happens.
If I click on the "View file @XXXXX" button on a commit page I get a 500 error page.
The gitlab error log says:
Started GET "/usermanagement/tree/master/UserManager/packages.config?=1356705852323" for 10.1.16.83 at 2012-12-28 09:44:10 -0500 Processing by TreeController#show as JS Parameters: {""=>"1356705852323", "project_id"=>"usermanagement", "id"=>"master/UserManager/packages.config"} Rendered tree/_blob_actions.html.haml (8.5ms) Rendered tree/blob/_text.html.haml (103.9ms) Rendered tree/_blob.html.haml (114.6ms) Rendered tree/_tree.html.haml (116.6ms) Rendered tree/show.js.haml (117.1ms) Completed 500 Internal Server Error in 251ms
ActionView::Template::Error (Failed to get header.): 9: .file_content.code 10: - unless blob.empty? 11: %div{class: user_color_scheme_class} 12: = raw blob.colorize(formatter: :gitlab) 13: - else 14: %p.nothing_here_message Empty file app/models/tree.rb:5:in `colorize' app/views/tree/blob/_text.html.haml:12:in '_app_views_tree_blob__text_html_haml___162379796_114116980' app/views/tree/_blob.html.haml:9:in '_app_views_tree__blob_html_haml__886999041_114217720' app/views/tree/_tree.html.haml:15:in '_app_views_tree__tree_html_haml__517799675_90035580' app/views/tree/show.js.haml:3:in '_app_views_tree_show_js_haml__411301427_90620720'
Thanks,