Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » credentials passed to proxy server(which protocols pass credentials and which not?)
credentials passed to proxy server [message #997490] Mon, 07 January 2013 18:50 Go to next message
Josef Stadelmann is currently offline Josef StadelmannFriend
Messages: 3
Registered: January 2013
Junior Member
Git works with http on my system to different repositories, but with http it fails with the error shown below:
is this my fault?

E:\>git clone http://git.eclipse.org/gitroot/jgit.git
Cloning into 'jgit'...
fatal: http://git.eclipse.org/gitroot/jgit.git/info/refs not found: did you run git update-server-info on the server?

Josef
Re: credentials passed to proxy server [message #997569 is a reply to message #997490] Tue, 08 January 2013 12:07 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 113
Registered: July 2009
Senior Member
the URL for http is http://git.eclipse.org/r/jgit/jgit. Try this URL instead.

Ciao
Chris
Re: credentials passed to proxy server [message #997572 is a reply to message #997569] Tue, 08 January 2013 12:26 Go to previous messageGo to next message
Josef Stadelmann is currently offline Josef StadelmannFriend
Messages: 3
Registered: January 2013
Junior Member
git.exe clone --progress -v "http://git.eclipse.org/r/jgit/jgit" "E:\jgit"

Cloning into 'E:\jgit'...
fatal: http://git.eclipse.org/r/jgit/jgit/info/refs not found: did you run git update-server-info on the server?

git did not exit cleanly (exit code 128) (1419 ms @ 08.01.2013 13:09:46)

no luck with http

BUT

with https

git.exe clone --progress -v "https://git.eclipse.org/r/jgit/jgit.git" "jgit"
Cloning into 'jgit'...
remote: Counting objects: 34611, done
remote: Finding sources: 100% (34611/34611)
remote: Total 34611 (delta 16510), reused 30623 (delta 16510)
Receiving objects: 100% (34611/34611), 11.00 MiB | 515 KiB/s, done.
Resolving deltas: 100% (16510/16510), done.

E:\>

did the job

How can I find which protocols a given git-repo-server supports?

back to my question: shall git be able to pass credentials for a git:// protocol?
- at current timme - in my mind - git does not pass http.proxy info if the protocol is git:// so that means that any git user sitting behind a firewall needs to talk to git-hub-server wich supports at least http to pass credentials and/or https.

Thanks for your help - but still waiting for a response to my question.

Josef
Re: credentials passed to proxy server [message #998348 is a reply to message #997572] Wed, 09 January 2013 21:13 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
Josef Stadelmann wrote on Tue, 08 January 2013 07:26
git.exe clone --progress -v "http://git.eclipse.org/r/jgit/jgit" "E:\jgit"

Cloning into 'E:\jgit'...
fatal: http://git.eclipse.org/r/jgit/jgit/info/refs not found: did you run git update-server-info on the server?

git did not exit cleanly (exit code 128) (1419 ms @ 08.01.2013 13:09:46)

no luck with http

BUT

with https

git.exe clone --progress -v "https://git.eclipse.org/r/jgit/jgit.git" "jgit"
Cloning into 'jgit'...
remote: Counting objects: 34611, done
remote: Finding sources: 100% (34611/34611)
remote: Total 34611 (delta 16510), reused 30623 (delta 16510)
Receiving objects: 100% (34611/34611), 11.00 MiB | 515 KiB/s, done.
Resolving deltas: 100% (16510/16510), done.

E:\>

did the job

How can I find which protocols a given git-repo-server supports?


Read the documentation of the infrastructure you are connecting to and if this doesn't help ask the administrator of the git server you are trying to access. For git.eclipse.org/r the git server is a Gerrit code review server running behind Apache used as a reverse proxy, I think there is no direct way to get its configuration from the client side except reading documentation [1] or asking the admin.

I will ask the Eclipse webmaster to close or redirect access to http://git.eclipse.org/r in order to avoid that other users get confused like you were confused here.

[1]
for Eclipse projects using plain git: http://wiki.eclipse.org/Git
for Eclipse projects using gerrit: http://wiki.eclipse.org/Gerrit

Quote:

back to my question: shall git be able to pass credentials for a git:// protocol?
- at current timme - in my mind - git does not pass http.proxy info if the protocol is git:// so that means that any git user sitting behind a firewall needs to talk to git-hub-server wich supports at least http to pass credentials and/or https.


git:// protocol doesn't support authentication and it's not HTTP but a highly optimized binary protocol [2].

Corporate IT shops often don't allow other protocols than HTTP / HTTPS to pass the firewall.

Usually the git protocol is only used for fetching git objects from public repositories and push over git:// protocol is blocked, since it's not supporting authentication so the server has no way to check the identity of the user trying to push changes.

[2] http://git-scm.com/book/ch4-1.html

--
Matthias
Re: credentials passed to proxy server [message #998356 is a reply to message #998348] Wed, 09 January 2013 21:27 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
I filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=397810 in order to ask the webmaster to configure redirection from http://git.eclipse.org/r to https://git.eclipse.org/r
Previous Topic:Missing Feature
Next Topic:credentials not passed
Goto Forum:
  


Current Time: Sat Dec 20 20:56:09 GMT 2014

Powered by FUDForum. Page generated in 0.01616 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software