Dashboard dead after trying to rename group path
Created by: pnull
I tried to rename the path of a group. Te result was a 500 (see log below). After that my dashboard is dead (see second log below)...
i'm on the current 4.1 stable branch
500 when trying to rename group path:
Started PUT "/admin/groups/Parser" for 127.0.0.1 at 2013-01-22 10:06:35 +0100 Processing by Admin::GroupsController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"bL3SptcYjPZq83mOBFoVB0AyHW7SGJegPChu6z3+Av0=", "group"=>{"name"=>"xyz Parser", "path"=>"parser"}, "id"=>"Parser"} Completed 500 Internal Server Error in 891ms
RuntimeError (Namespace move error /home/git/repositories/Parser /home/git/repositories/parser):
app/models/namespace.rb:87:in rescue in move_dir' app/models/namespace.rb:76:in
move_dir'
app/controllers/admin/groups_controller.rb:46:in `update'
problem when loading dashboard:
Started GET "/?limit=20&offset=0&=1358845657356" for 127.0.0.1 at 2013-01-22 10:07:37 +0100 Served asset /rss_ui-5b30f6b4c4e9d0b51fa7692fcf8b50b1.png - 304 Not Modified (0ms) Processing by DashboardController#index as JS Parameters: {"limit"=>"20", "offset"=>"0", ""=>"1358845657356"} Rendered events/event/_note.html.haml (7.9ms) Rendered events/event/_push.html.haml (5.9ms) Rendered events/_event.html.haml (19.4ms) Rendered dashboard/index.js.haml (23.2ms) Completed 500 Internal Server Error in 44ms
ActionView::Template::Error (undefined method commit' for nil:NilClass): 9: at 10: %strong= link_to_project event.project 11: 12: - if event.push_with_commits? 13: - project = event.project 14: .event-body 15: %ul.well-list.event_commits app/models/event.rb:207:in
block in commits'
app/models/event.rb:207:in map' app/models/event.rb:207:in
commits'
app/models/event.rb:245:in push_with_commits?' app/views/events/event/_push.html.haml:12:in
_app_views_events_event__push_html_haml___750074627717900917_61426520'
app/views/events/_event.html.haml:9:in _app_views_events__event_html_haml__4523995143481027811_20625660' app/views/dashboard/index.js.haml:2:in
_app_views_dashboard_index_js_haml__695926035729540718_21587560'
app/controllers/dashboard_controller.rb:29:in `index'