Bug 171907 - [connector] Sourceforge
Summary: [connector] Sourceforge
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P4 enhancement with 20 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL: http://sf.net
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-01-27 13:51 EST by bertrand florat CLA
Modified: 2016-05-02 00:39 EDT (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bertrand florat CLA 2007-01-27 13:51:36 EST
Support for SF (Alexandria) trackers
Comment 1 Eugene Kuleshov CLA 2007-01-27 14:12:56 EST
As far as I know there is no API for source forge tracker. 

You can use Web repository connector to query issues from the web UI. There is a template for the SourceForge projects. Also see wiki page at http://wiki.eclipse.org/index.php/Mylar_User_Guide#Generic_Web_Repository_Connector
Comment 2 Mik Kersten CLA 2007-01-29 14:46:43 EST
Please feel free to use this bug for listing any problems using Alexandria via the Generic Web Connector.
Comment 3 bertrand florat CLA 2007-01-29 16:38:38 EST
I didn't manage to query SF using generic web connector (providing group_id and atid as seen for Azureus on the wiki): when clicking on "validate", nothing happens and when making a query, I get a warning icon and synchronize doesn't work. (using last mylar release at this date). Note that the trac (XML-RPC) connector works perfectly so it's probably not a proxy problem.
Comment 4 Eugene Kuleshov CLA 2007-01-29 17:09:47 EST
Validate on repository settings does nothing because there is no reliable information available at this point. The significant part of the configuration is in query properties, where you can also use preview to check if query can be retrieved and parsed.

What does warning icon say? Strange that Azureus template didn't work for you, because automated tests are passing for all templates included with the web connector.

You can use little hack to see if html page has been loaded. Using regexp like (.+?)(\n) in query configuration, preview would show content of 
the page - one line per table row.

Also see the FAQ in the Mylar wiki at http://wiki.eclipse.org/index.php/Mylar_FAQ#Generic_Web_Repository_Connector
Comment 5 bertrand florat CLA 2007-02-04 10:16:51 EST
Warning says "Could not fetch resource". I just followed the Azureus example given on the manual (no advanded query, no authentication), perhaps should I use custom queries ?

Output of wget -v -d -o query.log -O query.html "http://sourceforge.net/tracker?group_id=91412&atid=597086" in my case is a correct html file containing the tasks...
Comment 6 Barrie Treloar CLA 2007-02-04 16:27:10 EST
I had a similar problem.
You need to read the getting started guides at http://www.eclipse.org/mylar/start.php instead of the user guide of faq.

I'm successfully connected to my sf project using mylar.
Comment 7 Max Berger CLA 2007-06-30 10:18:30 EDT
Ok, don't know if this is the right place: When using Mylyn (2.0.0) with SF, I am only allowed to add ONE SF repository total. When I try to add another SF repository, the template uses the same server ( http://sourceforge.net/tracker ), and mylyn complains saying the repository already exists.

A workaround is to change the server to something different, and then modify the advanced configuration, but this is pretty annoying.
Comment 8 Eugene Kuleshov CLA 2007-06-30 11:25:23 EDT
Max, please see note about SourceForge templates in the user guide at http://wiki.eclipse.org/Mylyn_User_Guide#Generic_Web_Repository_Connector
Comment 9 Max Berger CLA 2007-06-30 11:48:04 EDT
Ok, just read that. The documentation here is quite confusing, and so is the template. I'd recommend to rename the template to sourceforge, and set the default groupid and atid to either empty (if possible) or 0, so that it is clear that this is a generic template for all sf repositories. However, once I've understood it it works quite nicely.
Comment 10 Andreas Goetz CLA 2007-06-30 15:26:17 EDT
I agree with Max's comments. Althoguh I've been using web connector for some time I fell into the same pit again. The issues I see are.

1) creating new repository, the repository is names Azureus (Sourceforge)- this is just confusing. Should be Sourceforge only?
2) when trying this a second time, the error message is "Repository already exists"- which is msleading, as the same *server* has been selected before, but there's no such repository. Error message should be more explicit.

One solution that I could see would be to allow separate repositories for the same server (should not be a drawback?)- this would remedie the confusion for the user. This would also take care of the error messages from 2)
Comment 11 Eugene Kuleshov CLA 2007-07-01 00:55:28 EDT
Max, I am glad to hear that it worked for you. I can see that Azureus repository template can be confusing. However we need to have template for some SourceForge repository that can be used without editing groups, etc. So, using 0 as group id is not very acceptable option. What I could do is to add some kind of description or configuration instructions into the repository template, and show it on the web repository settings page. Would that help?

For the second point, the thing is that Mylyn core (not only for web repository connector) distinguish repositories by their urls, so there is no internal ids or anything and if urls are the same - it is the same repository, hence can't have two of the same. Mik can explain it in more details, but it was a design decision made long time ago and web connector can't do much about that. More over "Repository already exists" error is actually shown by Mylyn and not by the web connector.
Comment 12 Max Berger CLA 2007-07-01 06:00:18 EDT
That would surely help. Here is a sample description (of course, this may need improvement).

Rename the template to "Sourceforge"

add this help text:

This sample template is preconfigured for the Bugs tracker in the Azureus project. Please use the parameters "groupid" and "atid" in the query dialog to specify the project and tracker id for other projects.
Comment 13 Eugene Kuleshov CLA 2007-07-01 14:30:18 EDT
 (In reply to comment #12)
> That would surely help...

Opened bug 195059
Comment 14 Michael Keppler CLA 2007-07-08 11:06:32 EDT
I added a detailed description for Sourceforge configuration of the generic connector on the page http://wiki.eclipse.org/Using_Sourceforge_with_Mylyn

It lists all necessary parameters to be able to use multiple projects, multiple trackers and authorization. I was only able to figure this out by debugging the generic connector...
Comment 15 Eugene Kuleshov CLA 2007-07-08 11:45:57 EDT
Thanks. I've updated web connector repository template for Sourceforge.

BTW, what do you think made it difficult for you to figure out this configuration and why you had to debug trough?
Comment 16 Fasse CLA 2007-07-08 11:52:58 EDT
I want to use Mylyn with Sourceforge so I installed Mylyn 2.0 on Eclipse 3.3 with the Updater. But now I couldnt' find the Generic Web Connector. 

In the "Add Task Repository" I can only find bugzilla and trac. What's going wrong ?
Comment 17 Max Berger CLA 2007-07-08 12:04:55 EDT
Finally something that even I can answer :) Although I ran into the same problem and it took me a while. You need to install the "Extensions"

http://www.eclipse.org/mylyn/downloads/

(then look at the bottom)

Maybe this should be noted in the users guide, and in the FAQ...
Comment 18 Michael Keppler CLA 2007-07-08 15:39:35 EDT
(In reply to comment #15)
> BTW, what do you think made it difficult for you to figure out this
> configuration and why you had to debug trough?

It wasn't all because of Mylyn. :)

* It was the first time I used the generic connector and some of the settings just confused me (e.g. the login token, where I now know what it's good for).
* The principle of overriding the group_id and the atid parameters in the queries (for multiple projects/trackers) can be understood after using the generic connector for some time and then having an idea of its internal working, but it just doesn't match the expection of a new user, who will always try to create a new repository for each project.
* If a query is successfull, but the tracker answers with an empty result list, this is shown as (wrong) regex error in Mylyn, because the matcher doesn't match.
* By chance I did my first test on a non public tracker (which I was able to see as a project member when browsing it with my normal browser) which Mylyn couldn't browse anonymously.
* Sourceforge remembers your last tracker filter settings, so just calling the tracker URL from Mylyn showed different results after some days (because I changed the filter from my normal browser).

All this made me think about working on a dedicated Sourceforge connector, but I'm not sure if I do have the necessary spare time because of my other open source projects. So I will sleep over this idea for some more nights...
Comment 19 Eugene Kuleshov CLA 2007-07-08 16:01:44 EDT
(In reply to comment #18)
> * It was the first time I used the generic connector and some of the settings
> just confused me (e.g. the login token, where I now know what it's good for).

http://wiki.eclipse.org/Mylyn_User_Guide#Generic_Web_Repository_Connector
http://wiki.eclipse.org/Mylyn_FAQ#Generic_Web_Repository_Connector

> * The principle of overriding the group_id and the atid parameters in the
> queries (for multiple projects/trackers) can be understood after using the
> generic connector for some time and then having an idea of its internal working,
> but it just doesn't match the expection of a new user, who will always try to
> create a new repository for each project.

Interesting. We also have it described in the user guide. Besides, you don't need to create separate repositories for issue tracker like eclipse.org or codehaus.org even so they are hosting many projects.

> * If a query is successfull, but the tracker answers with an empty result list,
> this is shown as (wrong) regex error in Mylyn, because the matcher doesn't
> match.

True. The assumption is that query does return some results, so you can compare it with results from the web browser.
Comment 20 Mik Kersten CLA 2007-07-10 12:38:44 EDT
 (In reply to comment #14)
> I added a detailed description for Sourceforge configuration of the generic
> connector on the page http://wiki.eclipse.org/Using_Sourceforge_with_Mylyn

Very nice!  Having such a clear walk-through will definitely help some of the people encountering the problems described in comment#18.  However, in my opinion these points won't be fully addressed until the repository configuration can be configured once by the project admin and imported by the user (see bug 195660).
Comment 21 Eugene Kuleshov CLA 2007-07-10 13:15:46 EDT
Mik, once again, repository configuration is not project specific, because same repository can be used for more then one project (same stands for rich connector like Bugzilla, JIRA, IZ, PT, etc).
Comment 22 Andy Rozman CLA 2013-08-23 05:35:57 EDT
I tried using Mylyn Web Template (I found nice guides for using new Allura that SF uses), but I can't get it anywhere. Link here to incubation is invalid...
Comment 23 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