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

Bug 318103

Summary: [build] support authentication for Hudson
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: b.muskalla
Version: unspecified   
Target Milestone: 0.7   
Hardware: PC   
OS: Linux   
Whiteboard:

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.