jgit doesn't handle for http authentication [message #1688164] |
Fri, 20 March 2015 08:55 |
DeockJin Chung Messages: 1 Registered: March 2015 |
Junior Member |
|
|
[my environment]
- Server (my private git server using smart http)
+ ubuntu / apache2
+ apache2 : keep-alive on, basic authentication for my git repo path
- Client (OSX)
+ shell (in terminal) : git version 1.9.5 (Apple Git-50.3)
+ eclipse (luna, 4.4.2) : egit/jgit version 4.0.0.201503xxxxxx
[problem]
when i pushed to git server via shell (terminal), it worked fine.
also i observed (with wireshark) git-client resent POST with authentication header after 401 from server
but eclipse jgit gave up after receiving 401 from server.
and eclipse always present "org.eclipse.jgit.errors.TransportException: http:// /git: 401 Authorization Required"
(although i entered username and password in dialog and check "store in secure...")
now...after debugging jgit source(4.0.0), i think current version has serious logical problem for http auth method (or jgit doesn't support http auth method officialy)
does anybody has idea?
---------
[401 from server (only header)]
HTTP/1.1 401 Authorization Required\r\n
Date: Mon, 16 Mar 2015 12:32:31 GMT\r\n
Server: Apache/2.2.22 (Ubuntu)\r\n
WWW-Authenticate: Basic realm="Public Git Repositories on xxxxxx"\r\n
Vary: Accept-Encoding\r\n
Content-Encoding: gzip\r\n
Content-Length: 340\r\n
Keep-Alive: timeout=5, max=99\r\n
Connection: Keep-Alive\r\n
Content-Type: text/html; charset=iso-8859-1\r\n
[eclipse jgit log]
org.eclipse.jgit.errors.TransportException: http:// someurltomygit /git: 401 Authorization Required
at org.eclipse.jgit.transport.TransportHttp$Service.openResponse(TransportHttp.java:879)
at org.eclipse.jgit.transport.TransportHttp$MultiRequestService.execute(TransportHttp.java:981)
at org.eclipse.jgit.transport.TransportHttp$Service$HttpExecuteStream.read(TransportHttp.java:907)
at org.eclipse.jgit.util.io.UnionInputStream.read(UnionInputStream.java:145)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at org.eclipse.jgit.util.io.TimeoutInputStream.read(TimeoutInputStream.java:112)
at org.eclipse.jgit.util.IO.readFully(IO.java:246)
at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
at org.eclipse.jgit.transport.SideBandInputStream.needDataPacket(SideBandInputStream.java:158)
at org.eclipse.jgit.transport.SideBandInputStream.read(SideBandInputStream.java:140)
at org.eclipse.jgit.util.IO.readFully(IO.java:246)
at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:138)
at org.eclipse.jgit.transport.BasePackPushConnection.readStringLongTimeout(BasePackPushConnection.java:373)
at org.eclipse.jgit.transport.BasePackPushConnection.readStatusReport(BasePackPushConnection.java:314)
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:200)
at org.eclipse.jgit.transport.TransportHttp$SmartHttpPushConnection.doPush(TransportHttp.java:811)
at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:152)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:165)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1200)
at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:197)
at org.eclipse.egit.ui.internal.push.PushWizard$PushJob.run(PushWizard.java:297)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
[Updated on: Mon, 23 March 2015 00:51] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01893 seconds