Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Exception when trying to "push" over LDAP authenticated HTTP with Apache2

[Sorry if you guys see this a second time - I don't see my first attempt in the archive, so I assume it was because my registration hadn't been quite complete.]

I hope someone here can help me with this:
(first the basics - I'm running Netbeans 8.02 on a Windows 7 box and the latest Java 8 JDK):

I created a local repository from a remote GIT server using Netbeans and made various changes to my 'master'.  But when I try to 'push' things back to the server, I get a "401 Authorization" error. On the server side, I see this entry in the apache2 log:

10.41.37.102 - - [08/Jun/2015:17:53:56 -0400] "GET /git/SAT.git/info/refs?service=git-receive-pack HTTP/1.1" 200 483 "-" "git/2.1.4"
10.41.37.102 - - [08/Jun/2015:17:53:56 -0400] "POST /git/SAT.git/git-receive-pack HTTP/1.1" 401 664 "-" "git/2.1.4"

Our apache server is set to authenticate using Active Directory (LDAP).

Anyway, when I do a "git push origin master" from within a Cygwin terminal on my desktop - it works just fine.

Then I checked the netbeans logs and it shows the exception below.  When google'ing, I found some (fairly old posts) from Eclipse using folks that had the same/similar exception.  Is there a "fix" (I have no idea what version of jgit Netbeans 8.02 comes bundled with, so perhaps it's as easy as installing a newer jgit with the fix?).

Thanks in advance for any help/suggestions,
Tom


-------- Excerpt from Netbeans log: -----------------------------------

INFO [org.netbeans.modules.git]: http://twolf@10.240.60.141/git/SAT.git: 401 Unauthorized
org.eclipse.jgit.errors.TransportException: http://twolf@10.240.60.141/git/SAT.git: 401 Unauthorized
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.jgit.transport.Transport.push(Transport.java:1246)
at org.netbeans.libs.git.jgit.commands.PushCommand.runTransportCommand(PushCommand.java:111)
Caused: org.netbeans.libs.git.GitException$AuthorizationException: http://twolf@10.240.60.141/git/SAT.git: 401 Unauthorized
at org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:246)
at org.netbeans.libs.git.jgit.commands.PushCommand.runTransportCommand(PushCommand.java:141)
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.push(GitClient.java:1004)
at org.netbeans.modules.git.client.GitClient$41.call(GitClient.java:651)
at org.netbeans.modules.git.client.GitClient$41.call(GitClient.java:647)
at org.openide.util.NetworkSettings.suppressAuthenticationDialog(NetworkSettings.java:140)
at org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:885)
at org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:906)
at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:918)
at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:847)
at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:829)
at org.netbeans.modules.git.client.GitClient$CommandInvoker.access$400(GitClient.java:823)
at org.netbeans.modules.git.client.GitClient.push(GitClient.java:647)
[catch] at org.netbeans.modules.git.ui.push.PushAction$3.perform(PushAction.java:282)
at org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:114)
at org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:107)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

--

Back to the top