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

Bug 238131

Summary: [p2] Support bugzilla-authenticated update sites for Friends of Eclipse
Product: z_Archived Reporter: Nick Boldt <nboldt>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P4 CC: denis.roy, mik.kersten, nicolas.bros, pascal, robert.elves, steffen.pingel, wayne.beaton
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 236569    
Bug Blocks:    
Attachments:
Description Flags
error message when searching a friends.eclipse update site none

Description Nick Boldt CLA 2008-06-23 11:03:27 EDT
As suggested in eclipse.newcomer:

Sounds like a great idea to me.  Mylyn's authentication stuff is pretty straightforward to reuse (e.g. we have short unit tests that use it) and can run headless both within and outside of an OSGi environment (i.e. you don't need any of the UI parts of Mylyn to reuse it).   

If someone is interested in exploring this we would be happy to support it.  Just file a bug against us for discussing pointers on how to reuse it.

Mik

> This would be an awesome way to recycle the bugzilla authentication

> available in Mylyn. Could that integration be reused by p2, so that the

>   Friends version of the Ganymede site [1] can be used for updates?

> [1] http://friends.eclipse.org/downloads/releases/ganymede/

> And would that be something that's in scope for the Ganymede September

> Update, since it would encourage more Friends to kick the tires on p2?

>
> Nick

> > Unfortunately, we can't make the Friends mirror available within p2,
> > as p2 doesn't have a way for you to login with your Bugzilla account.
> > 
> > Denis

> > > I made the $35 donation to become a Friend Of Eclipse, but nowhere

> > > do I see the URL for the mirror site.

> > > What I tell p2 to use?
Comment 1 Mik Kersten CLA 2008-06-23 13:04:57 EDT
Mylyn is happy to support this effort, but I'm not sure if we're the right ones to drive it.  This falls into a gray area in between projects where it seems that Eclipse Foundation resources would make the most sense, if that were possible, since the "Friends of Eclipse" program is foundation specific.  Or is there interest from P2?
Comment 2 Pascal Rapicault CLA 2008-06-23 14:19:20 EDT
> Unfortunately, we can't make the Friends mirror available within p2, as p2 doesn't have a way for you to login with your Bugzilla account.
  p2 has the ability to query for login and pwd when connecting to a site that ask for authentication bringing up a dialog. I fail to see why this would not work for this.
  However what I recall from a discussion I had with Denis a while back is that authenticating is only one part of the solution because then a cookie was sent back and needed to be kept around. Has this changed?

Mik, how do you detect that you are being asked for a login / pwd. How do you know that you are connecting to a bugzilla repo?
Comment 3 Denis Roy CLA 2008-06-23 14:24:52 EDT
(In reply to comment #2)
>   However what I recall from a discussion I had with Denis a while back is that
> authenticating is only one part of the solution because then a cookie was sent
> back and needed to be kept around. Has this changed?

Right.  The Friends mirror doesn't use HTTP authentication (ie, response 401) it relies on the presence of a cookie with a specific code.  So http://denis:somepass@friends.eclipse.org/path won't work.

Comment 4 Mik Kersten CLA 2008-06-23 14:51:06 EDT
What Mylyn provides is the ability to validate against Bugzilla's credentials.  The code would look something like this:

		connector = new BugzillaRepositoryConnector();
		repository = new TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND, IBugzillaConstants.TEST_BUGZILLA_222_URL);
		repository.setCredentials(..);
		
You could then validate the credentials in the same way that the "Validate Settings" button works in the our UI.  
Comment 5 Robert Elves CLA 2008-06-23 20:42:30 EDT
(In reply to comment #2)
> Mik, how do you detect that you are being asked for a login / pwd. How do you
> know that you are connecting to a bugzilla repo?
Currently the Bugzilla Connector uses presence/absence of a "GoAheadAndLogIn=1" token in the html. 
From the sounds of things we first need to resolve the following bug:

bug#236569: consider using returned cookie as indication of authentication
https://bugs.eclipse.org/bugs/show_bug.cgi?id=236569

(assuming the mirrors are using the bugzilla cookie)
Comment 6 Pascal Rapicault CLA 2008-07-04 09:00:43 EDT
The actual p2 bug is #215916
Comment 7 Miles Parker CLA 2009-05-12 16:01:58 EDT
This would be really nice for FOE as I spend a lot more time doing Eclipse plugin downloads then in grabbing the core package.
Comment 8 Nick Boldt CLA 2009-05-12 16:24:25 EDT
Created attachment 135453 [details]
error message when searching a friends.eclipse update site

Even with Eclipse 3.5M6 and the latest Mylyn/Tasktop, I can't see the contents of 

http://friends.eclipse.org/downloads/tools/pdt/updates/2.0/

even though

http://download.eclipse.org/downloads/tools/pdt/updates/2.0/

works fine. The error message is rather misleading, too.
Comment 9 Steffen Pingel CLA 2011-09-27 18:36:01 EDT
Is this still relevant?
Comment 10 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn