Skip to content

FogBugz importer doesn't work when importing from an instance with a self-signed certificate

Summary

FogBugz importer doesn't work when importing from an instance with a self-signed certificate

What is the current bug behavior?

Logging will not output any errors and UI will display "Could not connect to FogBugz, check your url".

Pasted_Image_6_9_17__1_17_PM

What is the expected correct behavior?

Improved error message, logging, or support self-signed certificates

Relevant logs and/or screenshots

Started GET "/import/fogbugz/new" for 10.159.220.151 at 2017-06-07 13:29:40 -0400 
Processing by Import::FogbugzController#new as HTML 
Completed 200 OK in 41ms (Views: 26.2ms | ActiveRecord: 2.3ms | Elasticsearch: 0.0ms)

rb(main):002:0* import_params = {:uri=>"[url]", :email=>"REDACTED", :password=>"REDACTED"} 
=> {:uri=>"[url]", :email=>"REDACTED", :password=>"REDACTED"} 
irb(main):003:0> Gitlab::FogbugzImport::Client.new(import_params.symbolize_keys) 
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed 
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock' 
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/http.rb:933:in `connect' 
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/http.rb:863:in `do_start' 
from /opt/gitlab/embedded/lib/ruby/2.3.0/net/http.rb:852:in `start' 
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/ruby-fogbugz-0.2.1/lib/ruby_fogbugz/adapters/http/net_http.rb:29:in `request' 
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/ruby-fogbugz-0.2.1/lib/ruby_fogbugz/interface.rb:18:in `authenticate' 
from /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/fogbugz_import/client.rb:13:in `initialize' 

GitLab version

9.2.2-ee