Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358804 - support HTTP authentication for Gerrit
Summary: support HTTP authentication for Gerrit
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 0.9   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 366022 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-24 11:51 EDT by Vadim Dmitriev CLA
Modified: 2012-01-31 03:43 EST (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (61.87 KB, application/octet-stream)
2012-01-31 03:43 EST, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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