Updating project path ends in error 500
Created by: fjen
Using gitlab 7.1.0 and gitlab-shell 1.9.6 updating the project path gives error 500. The files are not moved on the server and gitlab shows an empty repo. The old files are no longer accessible under gitlab.
Steps to reproduce:
- Create a project
- Change project path under "Rename repository"
production.log:
Started GET "/finfadmin/test/edit" for 91.9.213.190 at 2014-07-30 14:59:25 +0200
Processing by ProjectsController#edit as HTML
Parameters: {"id"=>"finfadmin/test"}
Completed 200 OK in 65ms (Views: 52.0ms | ActiveRecord: 3.4ms)
Started PATCH "/finfadmin/test" for 91.9.213.190 at 2014-07-30 14:59:55 +0200
Processing by ProjectsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"2AP1Ex1oXoGSFlL3v9kmSCL5gMhNgRmgiwlaQhRByVw=", "project"=>{"path"=>"test-renamed"}, "id"=>"finfadmin/test"}
Completed 500 Internal Server Error in 373ms
Exception (repository cannot be renamed):
app/models/project.rb:522:in `rename_repo'
app/services/projects/update_service.rb:17:in `execute'
app/controllers/projects_controller.rb:32:in `update'