500 error on project deletion
Created by: TheSerapher
Testing the new Gitlab version and I have encountered an issue when creating a project, then when seeing the initial project page with instruction hitting the REMOVE button. The project is moved properly by sidekick but the redirect in https://github.com/gitlabhq/gitlabhq/blob/v8.0.4/app/controllers/projects_controller.rb#L113-L117 does not happen properly and returns a 500
:
Started DELETE "/root/test" for 127.0.0.1 at 2015-10-14 07:43:33 +0000
Processing by ProjectsController#destroy as HTML
Parameters: {"authenticity_token"=>"[FILTERED]", "namespace_id"=>"root", "id"=>"test"}
Completed 500 Internal Server Error in 1227ms (ActiveRecord: 45.6ms)
NoMethodError (undefined method `include?' for nil:NilClass):
app/controllers/projects_controller.rb:113:in `destroy'
Not sure what would be causing referred to be empty here, but if you need me to test anything let me know.
EDIT This also happens when trying to delete through the projects settings page. Gitlab 8.0.4 is my version installed from Omnibus.