git network user name for authentication not working in windows
I am trying to access my git repo hosted under IIS with Windows Authentication enabled. When i specify the username like domain\username the connection fails. From the stack trace it looks like the error is due to the way the network username is given. How else can we give the windows auth user which has domain in them.
This works fine from the console when i do a git clone ( https:/domain\user@mydomain.com/xyz/)
Error details
Test connection failed in Git Repo:: Git Repo. List remote refs failed: java.net.ConnectException: Cannot determine proxy for ....
Stacktrace
Caused by: org.eclipse.jgit.errors.TransportException: https:/domain\user@mydomain.com/xyz/info/refs?service=git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:466)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:276)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:523)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:503)
... 44 more
Caused by: java.net.ConnectException: Cannot determine proxy for https:/domain\user@mydomain.com/xyz/info/refs?service=git-upload-pack
at org.eclipse.jgit.util.HttpSupport.proxyFor(HttpSupport.java:196)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:475)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:471)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:422)
... 47 more
Caused by: java.net.URISyntaxException: Illegal character in authority at index 8: https:/domain\user@mydomain.com/xyz/info/refs?service=git-upload-pack
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.parseAuthority(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.eclipse.jgit.util.HttpSupport.proxyFor(HttpSupport.java:193)
This works fine from the console when i do a git clone ( https:/domain\user@mydomain.com/xyz/)
Error details
Test connection failed in Git Repo:: Git Repo. List remote refs failed: java.net.ConnectException: Cannot determine proxy for ....
Stacktrace
Caused by: org.eclipse.jgit.errors.TransportException: https:/domain\user@mydomain.com/xyz/info/refs?service=git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:466)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:276)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:523)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:503)
... 44 more
Caused by: java.net.ConnectException: Cannot determine proxy for https:/domain\user@mydomain.com/xyz/info/refs?service=git-upload-pack
at org.eclipse.jgit.util.HttpSupport.proxyFor(HttpSupport.java:196)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:475)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:471)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:422)
... 47 more
Caused by: java.net.URISyntaxException: Illegal character in authority at index 8: https:/domain\user@mydomain.com/xyz/info/refs?service=git-upload-pack
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.parseAuthority(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.eclipse.jgit.util.HttpSupport.proxyFor(HttpSupport.java:193)
Please sign in to leave a comment.
Hi Kim,
seems like it is http://youtrack.jetbrains.com/issue/TW-21747. Upgrade to 7.0.4 or 7.1 should help. Or you can download the latest build of git-plugin from http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt349 , put it into .BuildServer/plugins and restart the server.
Hi
This issue still seems to exist. We are trying to connect to a Team Foundation Server 2013 git repo but teamcity gives the following error.
List remote refs failed: java.net.ConnectException: Cannot determine proxy for http://domain\user@msc2k12:8080/tfs/xyz/_git/projectname/info/refs?service=git-upload-pack.
Other git tools like SourceTree seem to work just fine.
Could you please check if changing the username from domain\user to domain%5cuser helps?
Hi that changes the error message.
List remote refs failed: org.eclipse.jgit.errors.TransportException: http://domain%255cuser@msc2k12.msc.local:8080/tfs/collection/_git/projectname: authentication not supported
I've reopened http://youtrack.jetbrains.com/issue/TW-21747, please watch it.