| Summary: | [p2] Support bugzilla-authenticated update sites for Friends of Eclipse | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Nick Boldt <nboldt> | ||||
| Component: | Mylyn | Assignee: | 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: | unspecified | Keywords: | helpwanted | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 236569 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Nick Boldt
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? > 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?
(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. 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. (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) The actual p2 bug is #215916 This would be really nice for FOE as I spend a lot more time doing Eclipse plugin downloads then in grabbing the core package. 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. Is this still relevant? 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 |