Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338331

Summary: unauthorized problems during push and fetch
Product: [Technology] EGit Reporter: Thomas Ehrnhoefer <thomas.ehrnhoefer>
Component: CoreAssignee: Matthias Sohn <matthias.sohn>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: b.muskalla, stefan.lay
Version: 0.11   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 336646    
Bug Blocks:    

Description Thomas Ehrnhoefer CLA 2011-02-27 08:39:41 EST
Trying to work with a basic auth protected git remote repository.
From the start on eGit was not able to do a fetch (see error message below), but at least once a push worked (it prompted me for credentials), at least I am quite certain it did.

But now I cannot push either. eGit still prompts me for credentials (even though they are in the secure store), but in the Push Results wizard page the table stays empty and the message is " An internal Exception occured during push: [url]: 401 Unauthorized"

Using the same credentials from git bash works.


org.eclipse.core.runtime.CoreException: [url]: 401 Unauthorized
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:102)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.run(FetchOperationUI.java:117)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.TransportException: [url]: 401 Unauthorized
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:287)
at org.eclipse.jgit.transport.TransportHttp$SmartHttpFetchConnection.doFetch(TransportHttp.java:645)
at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:225)
at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:214)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:149)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:111)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:903)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:134)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:128)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
... 2 more
Caused by: org.eclipse.jgit.errors.TransportException: [url]: 401 Unauthorized
at org.eclipse.jgit.transport.TransportHttp$Service.execute(TransportHttp.java:764)
at org.eclipse.jgit.transport.TransportHttp$Service$HttpExecuteStream.read(TransportHttp.java:804)
at org.eclipse.jgit.util.io.UnionInputStream.read(UnionInputStream.java:144)
at org.eclipse.jgit.util.IO.readFully(IO.java:175)
at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:141)
at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:108)
at org.eclipse.jgit.transport.PacketLineIn.readACK(PacketLineIn.java:86)
at org.eclipse.jgit.transport.BasePackFetchConnection.negotiate(BasePackFetchConnection.java:550)
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:273)
... 11 more
Comment 1 Stefan Lay CLA 2011-02-28 08:38:25 EST
This seems to be similar to bug 336646, which is fixed. Could you please try the latest nightly build (http://download.eclipse.org/egit/updates-nightly 
)?
Comment 2 Thomas Ehrnhoefer CLA 2011-02-28 10:34:58 EST
yes, that fixed it, thanks!