Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » 401 Authorization Required
401 Authorization Required [message #682301] Fri, 10 June 2011 19:47 Go to next message
Isaac Dancy is currently offline Isaac Dancy
Messages: 1
Registered: June 2011
Junior Member
I'm sure this has been covered somewhere, but I am new to EGit and cannot find the solution. I'm running Adobe Flash Builder 4.5 with EGit 0.12.1 on Mac OS X. I can pull from my remote Git repository but I cannot push to it. The error message is:

"An internal exception occurred during push: http... : 401 Authorization Required"

The server is using apache and is configured to use Smart HTTP via git-http-backend.

My HTTP credentials are specified in a .netrc in my home directory. I am able to push from Terminal with no trouble. I've tried supplying my credentials through the EGit plug-in but the end result is the same.
Re: 401 Authorization Required [message #683844 is a reply to message #682301] Tue, 14 June 2011 13:56 Go to previous message
James Moger is currently offline James Moger
Messages: 8
Registered: June 2011
Junior Member
I've had a similar problem recently - but not with Apache.
Perhaps this javadoc comment from the jgit http project may be useful to you:
(this applies to the remote repository and server config)
Quote:

Writing by receive-pack is permitted if any of the following is true:

  • The container has authenticated the user and set {@link HttpServletRequest#getRemoteUser()} to the authenticated name.
  • The repository configuration file has {@code http.receivepack} explicitly set to true.

and explicitly rejected otherwise.


Previous Topic:Pushing to JGitServlet... any known issues? (e.g. no gc?)
Next Topic:Problems importing project using "New Projects" wizard
Goto Forum:
  


Current Time: Sat Sep 20 14:12:19 GMT 2014

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

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