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

Bug 358804

Summary: support HTTP authentication for Gerrit
Product: z_Archived Reporter: Vadim Dmitriev <dmgloss>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: dieter.scholz
Version: unspecified   
Target Milestone: 0.9   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Vadim Dmitriev CLA 2011-09-24 11:51:13 EDT
To reproduce configure apache to:
1. reverse-proxy gerrit instance;
2. authenticate client by the 'basic' method.

In this situation connector fails to retrieve gerrit configuration and after executing mylyn queries a warning icon is displayed. If I'm correct the reason for this is that GerritHttpClient#getMothod doesn't supply valid username/password for apache to handle authentication. It isn't the case for the GerritHttpClient#postJsonRequest method.

-- Configuration Details --
Product: Eclipse Platform 3.7.1.v201109091335 (org.eclipse.platform.ide)
Installed Features:
 org.eclipse.mylyn_feature 3.7.0.I20110922-1921
Comment 1 Vadim Dmitriev CLA 2011-09-24 15:10:22 EDT
We reconfigured gerrit and apache server for authentication to be handled entirely by gerrit, everything works smoothly now. As a one way to resolve the issue I would suggest displaying a warning during repository configuration that the mentioned setup is only partially supported.

Regards.
Comment 2 Steffen Pingel CLA 2011-09-27 05:48:52 EDT
Thanks for the request. The Gerrit connector does not support HTTP authentication, yet. I'm surprised that it would work for post requests since the configuration elements in the task repository settings page are disabled.
Comment 3 Steffen Pingel CLA 2011-12-08 09:44:32 EST
*** Bug 366022 has been marked as a duplicate of this bug. ***
Comment 4 Steffen Pingel CLA 2012-01-31 03:43:31 EST
The configuration handling now uses the same authentication mechanism as the Json post requests. I have verified that configuration retrieval now works in the described configuration which I have setup on a test server at http://mylyn.org/gerrit-2.2.2/#/.
Comment 5 Steffen Pingel CLA 2012-01-31 03:43:34 EST
Created attachment 210299 [details]
mylyn/context/zip