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

Bug 300785

Summary: 401 HTTP request not handled
Product: [Technology] JGit Reporter: Rodrigo Benenson <rodrigo.benenson>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: hl+eclipse, j, Lars.Vogel, lcf, matthias.sohn, rodrigo.benenson, stefan.lay
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Rodrigo Benenson CLA 2010-01-26 05:36:36 EST
Build Identifier: 

This is a two years issue
http://code.google.com/p/egit/issues/detail?id=43

that has been confirmed in EGit 0.6.0.200911171911

What steps will reproduce the problem?
1. Use a git repo with http auth
2. Put user and pass
3. Click next

What is the expected output? What do you see instead?

See the repo files, HTTP 401 challenge that is not properly handled. 

What version of the product are you using? On what operating system?

0.3.1  egit
3.4.1  eclipse
10.5.5 Mac OS X




Reproducible: Always

Steps to Reproduce:
1. Use a git repo with http auth
2. Put user and pass
3. Click next
Comment 1 Matthias Sohn CLA 2010-05-26 17:41:44 EDT
Could you retry with a recent version (0.8.0.x) from http://download.eclipse.org/egit/updates-nightly (p2 repository) ?
Comment 2 hl+eclipse CLA 2010-05-27 04:09:44 EDT
(In reply to comment #1)
> Could you retry with a recent version (0.8.0.x) from
> http://download.eclipse.org/egit/updates-nightly (p2 repository) ?

Hi.

I hava tried to try it, but the dependencies to Mylyn WikiText cannot be resolved by my Eclipse JEE bundle installation. Why is there this dependency? Against what version do you test / build the nightly builds?
Comment 3 Matthias Sohn CLA 2010-05-27 11:44:13 EDT
oops, this wasn't intentionally introduced as an installation dependency, created bug 314707
Comment 4 hl+eclipse CLA 2010-05-27 12:27:42 EDT
(In reply to comment #3)
No problem. Just give me a note (or close the bug ;) ) and I will give it a second try.
Comment 5 Matthias Sohn CLA 2010-05-27 12:42:05 EDT
bug 314707 should be fixed with build https://build.eclipse.org/hudson/job/egit/272/
Comment 6 hl+eclipse CLA 2010-05-28 04:24:01 EDT
Hi.

I still have the "401 Authorization Required" problem. The steps I have done:

1. Fresh Eclipse Java SR2 "install"
2. CAcert.org root certificate imported to JRE keystore
3. Plugin installed via nightly build repo
4. Tried to connect to my test repository
--> Could not login.

To be sure I have re-checked the location by copying the URI into my browsers address bar. This worked.

On server side I run a debian box, Apache 2 is used for https access and http basic authentication.
Comment 7 Michal Staruch CLA 2010-06-08 14:44:40 EDT
401 still there - tested on Eclipse 3.5.2, EGit 0.8.2.201006071534, JGit 0.8.2.201006071531, running on 32-bit Windows Vista SP2, JDK 1.6.0_20.

No problem with authorization via browsers or "git clone".

Server is Apache 2.2.15 - just basic HTTP and WebDAV setup.
Comment 8 Stefan Lay CLA 2010-08-09 06:57:07 EDT
There is already an open bug. The feature (authentication over http(s) is simply not implemented yet. As a first solution we should disable the credential input fields in EGit.

*** This bug has been marked as a duplicate of bug 296201 ***