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

Bug 140512

Summary: [connector] Trac
Product: z_Archived Reporter: Josh Moore <josh.moore>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P4 CC: dev, dman, eclipse.dserodio, ekuleshov, francois, gunnar, kazarmy, mik.kersten, pombredanne, soloturn, steffen.pingel, tvanlessen, vermersch+eclipse
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Josh Moore CLA 2006-05-07 15:56:14 EDT
Mentioned in bug 123622 and on the mailing list (http://dev.eclipse.org/mhonarc/lists/mylar-dev/msg00203.html), Mylar integration with Trac (http://projects.edgewall.com/trac) would be very beneficial. There are  still technical issues on the trac side for makinge this happen (SOAP interface, etc.), but these seem to be planned (see http://projects.edgewall.com/trac/ticket/217 and the plugin at
http://trac-hacks.org/wiki/XmlRpcPlugin)
Comment 1 Mik Kersten CLA 2006-05-16 12:40:07 EDT
All connector requests have priority set to P4 since these reports do not participate in weekly planning.
Comment 2 Steffen Pingel CLA 2006-06-06 08:36:41 EDT
Currently there are two ways to access Trac tickets remotely:
 
 * Tab-delimited output of custom query script
   - available in all Trac installations, including public repositories
   - access trough http/https, optional authentication via http basic
     authentication and cookies
   - requires TICKET_VIEW permission which is granted to anonymous by default
   - query support with flexible search criteria
     (http://projects.edgewall.com/trac/query)
   - information provided per ticket: id, summary, status, owner, type,
     priority, component
   - no support to query a single ticket by id
   - suitable for Mylar "Web linking only" and "Query support" integration

 * XML-RPC Plug-in
   - distributed as an external plug-in
   - access trough XML-RPC (i.e. using Apache XML-RPC), authentication via
     http basic authentication 
   - currently requires SVN snapshot of Trac, according to the author, Alec
     Thomas, the next Trac major release 0.10 which is due in a few weeks 
     will be compatible
   - requires XML_RPC permission
   - provides a CRUD interface for tickets, milestones, severeties etc.
   - provides full ticket information including custom fields
     (http://projects.edgewall.com/trac/wiki/TracTicketsCustomFields)
   - query support is equivalent to custom query script (although only ticket
     ids are returned)
   - suitable for Mylar "Full integration"
Comment 3 Mik Kersten CLA 2006-06-08 01:40:10 EDT
All: good news, Steffen is taking this on as a Google Summer of Code Student: http://wiki.eclipse.org/index.php/Mylar_Trac_Connector

Steffen: since 0.10 is coming soon do you plan on focusing on the XML-RPC appraoch?  
Comment 4 Josh Moore CLA 2006-06-08 02:45:09 EDT
This is excellent. Kudos all around. 

A note to the implementation: on the project page it's mentioned that the integrated Eclipse browser can be used to edit tickets. In my installation (trac 0.9.5 over https, Eclipse 3.1, Mylar 0.5.1) this does not work because of some https issues in the browser. In fact, the trac ticket page is not even displayed until the Mylar bug url is changd to the http protocol. I can, however, edit as anonymous. 
Comment 5 Steffen Pingel CLA 2006-06-08 07:49:34 EDT
(In reply to comment #3)

> Steffen: since 0.10 is coming soon do you plan on focusing on the XML-RPC
> appraoch?  

Yes. I still think both approaches should be supported though. Once the data model has been defined for XML-RPC it should be easy to adapt the existing parser for the tab-delimited output. Code for the query wizard can be shared, so the additional cost of supporting the tab-delimited output is marginal.
Comment 6 Steffen Pingel CLA 2006-06-08 07:57:38 EDT
(In reply to comment #4)

> A note to the implementation: on the project page it's mentioned that the
> integrated Eclipse browser can be used to edit tickets. In my installation
> (trac 0.9.5 over https, Eclipse 3.1, Mylar 0.5.1) this does not work because
> of some https issues in the browser. 

I have experienced the same problems on my Linux system. This is related to a problem with the SWT browser widget and https:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=80033

As a work around http can be used if available.
Comment 7 Mik Kersten CLA 2006-06-26 23:59:25 EDT
The https on Linux problem has been fixed in the 3.3 stream, see bug 80033.
Comment 8 Jeff Pound CLA 2006-07-06 14:12:07 EDT
Dr. Project is another tracking system based on Trac. You might be able to use the trac connector for it and get support for two systems with one connector.

Here's the url:
http://www.third-bit.com/drproject
Comment 9 Steffen Pingel CLA 2006-07-17 18:55:56 EDT
As pointed out in http://dev.eclipse.org/mhonarc/lists/mylar-dev/msg00495.html a preview release of the Trac connector is available from the Mylar dev builds update site (see http://www.eclipse.org/mylar/dl.php).
Comment 10 Mik Kersten CLA 2006-07-26 12:40:31 EDT
We are getting ready to release the first version of the Trac connector but have only seen one bug report go by for the version available in the dev build.  Could anyone CC'd here interesting in using it give it a shot and report any feedback?  The latest dev build is 0.6.0.v20060726-0900 available from: download.eclipse.org/technology/mylar/update-site/dev
Comment 11 Daniel Serodio CLA 2006-07-27 09:08:27 EDT
I'd love to give it a try, but I'll have to wait for bug 151077 because our Trac uses HTTP digest authentication, so the current Trac connector doen't work for me (or my team).
Comment 12 Josh Moore CLA 2006-07-27 09:36:38 EDT
I'm in the same boat, for https and 64bit reasons. However, I did check out after comment #9 and all the functionality other than browsing (repositories, queries) worked well.
Comment 13 Mik Kersten CLA 2006-07-27 19:39:31 EDT
A new dev build (0.6.0.v20060727-1630) just went up and contains Steffen's fixes for the authentication problems.  Could you give that a shot?  Please give up to 15 minutes for it to propagate to mirrors.
Comment 14 Mik Kersten CLA 2006-08-02 03:16:01 EDT
The Trac Connector was released with Mylar 0.6.1: http://www.eclipse.org/mylar/doc/new.php

With 29 votes, this was our most-voted for bug to date!  Please file any new bugs under the Trac component.