Branches with names that clash with internal URL's
Created by: afraazali
We had an incident where a developer created a remote branch called "services", any time we tried visiting the branch, we would get a 500 with the following error in the logs:
Started GET "/corp_redesign/commits/services" for 127.0.0.1 at 2013-01-15 08:02:12 -0800 Processing by ServicesController#index as HTML Parameters: {"project_id"=>"corp_redesign/commits"} Completed 500 Internal Server Error in 3ms
NoMethodError (undefined method
id' for nil:NilClass): app/models/project.rb:104:in
find_with_namespace' app/controllers/application_controller.rb:69:in `project'
I've created other branches and they work fine, it's just if you name the branch services, it throws the above error. I'm currently running the 4.0-stable branch.