URLs with .git extension no longer work in the browser
Summary
on 8.14.5 entering both of these urls in the browser worked
https://git.my-domain.com/my-group/my-project-name.git https://git.my-domain.com/my-group/my-project-name
in 8.15.4 entering the URL with the .git extension produces a blank page
Steps to reproduce
visit https://git.my-domain.com/my-group/my-project-name.git
Expected behavior
you should see the project, as you do when you visit https://git.my-domain.com/my-group/my-project-name
Actual behavior
you see a blank page
Relevant logs and/or screenshots
https://git.my-domain.com/my-group/my-project-name.git
Started GET "/my-group/my-project-name.git" for 10.102.128.203 at 2017-01-19 10:34:06 -0700
Processing by ProjectsController#show as
Parameters: {"namespace_id"=>"my-group", "id"=>"my-project-name"}
Completed 406 Not Acceptable in 116ms (ActiveRecord: 13.8ms)
ActionController::UnknownFormat (ActionController::UnknownFormat):
app/controllers/projects_controller.rb:106:in `show'
lib/gitlab/middleware/multipart.rb:93:in `call'
lib/gitlab/request_profiler/middleware.rb:15:in `call'
lib/gitlab/middleware/go.rb:16:in `call'
https://git.my-domain.com/my-group/my-project-name
Started GET "/my-group/my-project-name" for 10.102.128.203 at 2017-01-19 10:34:36 -0700
Processing by ProjectsController#show as HTML
Parameters: {"namespace_id"=>"my-group", "id"=>"my-project-name"}
Completed 200 OK in 359ms (Views: 221.0ms | ActiveRecord: 45.7ms)
Started POST "/ci/api/v1/builds/register.json" for 10.146.188.66 at 2017-01-19 10:34:36 -0700
Started GET "/my-group/my-project-name/refs/master/logs_tree/?_=1484847276759" for 10.102.128.203 at 2017-01-19 10:34:36 -0700
Processing by Projects::RefsController#logs_tree as JS
Parameters: {"_"=>"1484847276759", "namespace_id"=>"my-group", "project_id"=>"my-project-name", "id"=>"master"}
Completed 200 OK in 144ms (Views: 17.5ms | ActiveRecord: 8.1ms)
Output of checks
N/A
Results of GitLab application Check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)
there is sensitive info regarding LDAP users in the output, but everything passes Checking GitLab ... Finished
Results of GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.6.6
Bundler Version:1.13.7
Rake Version: 10.5.0
Sidekiq Version:4.2.7
GitLab information
Version: 8.15.4
Revision: a0b1379
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://git.ucalgary.ca
HTTP Clone URL: https://git.ucalgary.ca/some-group/some-project.git
SSH Clone URL: git@git.ucalgary.ca:some-group/some-project.git
Using LDAP: yes
Using Omniauth: no
GitLab Shell
Version: 4.1.1
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Possible fixes
redirect browser from https://git.my-domain.com/my-group/my-project-name.git to https://git.my-domain.com/my-group/my-project-name like it used to in 8.14.5