Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » 401 Authorization Required
401 Authorization Required [message #682301] Fri, 10 June 2011 19:47 Go to next message
Isaac Dancy is currently offline Isaac DancyFriend
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 MogerFriend
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)

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: Tue Nov 29 02:34:57 GMT 2022

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

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

Back to the top