Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318103 - [build] support authentication for Hudson
Summary: [build] support authentication for Hudson
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-26 19:17 EDT by Steffen Pingel CLA
Modified: 2011-01-05 14:44 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2010-06-26 19:17:40 EDT
Sending requests to a protected Hudson URL results in a 403 respoonse, e.g. http://mylyn.eclipse.org/hudson/job/succeeding/build . The Hudson connector should handle that and automatically login if credentials are provided for a build repository.
Comment 1 Markus Knittig CLA 2010-06-27 18:00:43 EDT
Yeah, login doesn't seem to work, but it should in theory work automatically with HTTP authentication (if provided). It even requests new credentials...
Note for the settings dialog: Remove "Enable Http Authentication" in the future, since this is kind of redundant.
Comment 2 Steffen Pingel CLA 2010-06-27 22:00:33 EDT
Ah, okay. Then something might be wrong in the way that credentials get set on the repository, i.e. CommonHttpClient might not pick them up as properly. What if you set authenticationType = AuthenticationType.HTTP in CommonHttpClient.needsReauthentication(), does that fix the problem?
Comment 3 Markus Knittig CLA 2010-06-28 10:44:39 EDT
Yes, that works better.
Comment 4 Steffen Pingel CLA 2010-06-30 20:58:28 EDT
Then all that needs to be done here is to disable the UI for HTTP auth and use repository credentials for HTTP auth. We might need to reconsider in case we want to support the case where HTTP credentials differ from the Hudson credentials but we don't to worry about that now.

I'll take this bug for now since this will require some changes in the framework.
Comment 5 Steffen Pingel CLA 2010-08-22 05:16:48 EDT
This should work now.