This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267515 - Impossible to make GIT -> Remote -> Push using SSL Client Certificate, error cannot connect
Summary: Impossible to make GIT -> Remote -> Push using SSL Client Certificate, error ...
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal with 1 vote (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-10 05:15 UTC by jan_blaha
Modified: 2017-10-18 21:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log (70.97 KB, text/plain)
2016-08-10 05:15 UTC, jan_blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jan_blaha 2016-08-10 05:15:08 UTC
Created attachment 161614 [details]
IDE Log

GIT support ignore settings in repository .git\config

[http "https://gitlab.terminus.cz"]
	sslCAInfo = C:\\Common data\\Projects\\GitLab Certificates\\ca.crt
	sslCert = C:\\Common data\\Projects\\GitLab Certificates\\gitlab.terminus.cz.user.jan.blaha.hp8530w.crt
	sslKey = C:\\Common data\\Projects\\GitLab Certificates\\gitlab.terminus.cz.user.jan.blaha.hp8530w.key

jgit try to connect without authentication using certificates, which caused to be redirected to plain html page with error.

INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Cannot connect to https://gitlab.terminus.cz/trading-currency-trader/currency_trader.git
org.eclipse.jgit.errors.PackProtocolException: invalid advertisement of <!DOCTYPE html>
	at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.invalidAdvertisement(TransportHttp.java:750)
	at org.eclipse.jgit.transport.TransportHttp$HttpObjectDB.readAdvertisedImpl(TransportHttp.java:716)
	at org.eclipse.jgit.transport.TransportHttp.newDumbConnection(TransportHttp.java:340)
	at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:320)
	at org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:74)
Caused: org.netbeans.libs.git.GitException: invalid advertisement of <!DOCTYPE html>
	at org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:261)
	at org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:87)
	at org.netbeans.libs.git.jgit.commands.TransportCommand.run(TransportCommand.java:191)
	at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:80)
	at org.netbeans.libs.git.jgit.commands.GitCommand$1.run(GitCommand.java:77)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:77)
	at org.netbeans.libs.git.GitClient.listRemoteBranches(GitClient.java:916)
	at org.netbeans.modules.git.client.GitClient$36.call(GitClient.java:605)
	at org.netbeans.modules.git.client.GitClient$36.call(GitClient.java:601)
	at org.openide.util.NetworkSettings.suppressAuthenticationDialog(NetworkSettings.java:140)
	at org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:954)
	at org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:979)
	at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:991)
	at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:920)
	at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:898)
	at org.netbeans.modules.git.client.GitClient$CommandInvoker.access$400(GitClient.java:892)
	at org.netbeans.modules.git.client.GitClient.listRemoteBranches(GitClient.java:601)
[catch] at org.netbeans.modules.git.ui.repository.remote.SelectUriStep$2.perform(SelectUriStep.java:263)
	at org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:115)
	at org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:108)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Comment 1 null 2017-10-18 21:49:24 UTC
I can confirm this bug. Lost quite some hours work because of this issue.