it redirect to 404 page aways after login success deployed gitlab with cdn
Created by: skcks
every user login success result in the url "http://gitlab.mysite.com/users/favicon.ico?id=0.(\d+)….." , 5.2-stable gitlab deployed on vps and using cdn provided by incapsula.com
production log:
Started POST "/users/sign_in" for 113.111.***.*** at 2013-06-07 00:24:37 +0800
Processing by Devise::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"KP061j6SwC0JjFAWEG0sUFogcnNND4KFpNqxqqFVIGo=", "user"=>{"login"=>"sk***@live.com", "password"=>"[FILTERED]", "remember_me"=>"0"}}
Redirected to http://gitlab.mysite.com/users/favicon.ico?id=0.7132064721081406
Completed 302 Found in 114ms (ActiveRecord: 0.0ms)
Started GET "/users/favicon.ico?id=0.7132064721081406" for 113.111.***.*** at 2013-06-07 00:24:38 +0800
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"users/favicon.ico"}
Rendered public/404.html (0.1ms)
Filter chain halted as :project rendered or redirected
Completed 404 Not Found in 3ms (Views: 0.9ms | ActiveRecord: 0.4ms)
solution:
it will be ok after delete line 6 in _header.html.haml(find it in home/git/gitlab/app/views/layouts):
%head
%meta{charset: "utf-8"}
%title
= "#{title} | " if defined?(title)
GitLab
= favicon_link_tag 'favicon.ico' /delete this line
= stylesheet_link_tag "application"
= javascript_include_tag "application"
= csrf_meta_tags