gitlabhq/gitlabhq — Issue #313: 500 error on project page
Author: corristo
Created: 2012-01-20 14:42:51+00:00
State: open

After upgrading from 21b31a675dd314f987276e64c7c5f7aa9b30f4fb to 4b06d82f3dbb84d0a3fc4de837186b93f35fc942 (with db migration of course) new problem appeared: 500 error on project page.

Here is related part of log:

Started GET "/catalog" for 10.0.2.2 at 2012-01-20 18:22:14 +0400
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"catalog"}
Rendered projects/_project_head.html.haml (4.6ms)
Rendered projects/_feed.html.haml (19.4ms)
Rendered projects/_feed.html.haml (0.8ms)
Rendered projects/_feed.html.haml (1.5ms)
Rendered projects/show.html.haml within layouts/project (29.2ms)
Completed 500 Internal Server Error in 113ms

ActionView::Template::Error (invalid string: 1400):
7:	%strong= update.author_name
8:	= time_ago_in_words(update.created_at)
9:	ago
10:	- noteable = update.target
11:	- if noteable.kind_of?(MergeRequest)
12:	.title-block
13:	%span.update-title
app/models/repository.rb:98:in `commit'
app/models/project.rb:74:in `commit'
app/models/note.rb:51:in `target'
app/views/projects/_feed.html.haml:10:in `_app_views_projects__feed_html_haml__168214030__623070388'
app/views/projects/show.html.haml:7:in `block in _app_views_projects_show_html_haml__468304673__622115658'
app/views/projects/show.html.haml:6:in `each'
app/views/projects/show.html.haml:6:in `_app_views_projects_show_html_haml__468304673__622115658'