Community
Participate
Working Groups
Hi, Environment: Trac 1.0.1, XMLRPC plugin 1.1.2, Eclipse "Kepler Service Release 1" with integrated Mylyn, Mylyn Trac Connector 3.8. Problem: We have several ticket types defined, but Mylyn only shows one: task - and therefore, we can only query this particular ticket type. Updating the repository configuration did not help. Steps to reproduce: - Add a new Task repository - Choose Trac - Provide server address and credentials - Create a new query for this task repository - Click on "Refresh" - "Type" only contains "Task" Expected behavior: - all ticket types should be shown
I tried reproducing this with our Trac tests instance which is running Trac 1.0 with TracXmlRpc 1.1.2 but that shows defect, enhancement and task as expected (http://mylyn.org/trac-test/). Same with 1.0.1. Is there anything special about the other task types (e.g. non US-ASCII characters)?
(In reply to Steffen Pingel from comment #2 > I tried reproducing this with our Trac tests instance which is running Trac > 1.0 with TracXmlRpc 1.1.2 but that shows defect, enhancement and task as > expected (http://mylyn.org/trac-test/). Same with 1.0.1. Is there anything > special about the other task types (e.g. non US-ASCII characters)? Nope. Only task, defect and enhancment. I could set up a test environment for you, if you wish.
Your test envoronment http://mylyn.org/trac-test/ shows all 3 ticket types.
(In reply to comment #3) > (In reply to Steffen Pingel from comment #2 > I could set up a test environment for you, if you wish. If that's possible it would be easiest to analyze the problem.
(In reply to Steffen Pingel from comment #5) > (In reply to comment #3) > > (In reply to Steffen Pingel from comment #2 > > I could set up a test environment for you, if you wish. > > If that's possible it would be easiest to analyze the problem. Great, Steffen! The environment has been set up, but there is no anon access possible. created an account for you. Mail with the login data follows.
I looked around a bit but didn't have any luck identifying the cause of the problem. Everything appears to work fine in web mode but the XML-RPC call to "ticket.type.getAll" only returns "task" as a ticket type. Even queries don't return other ticket types (again works in web mode). I would suspect that another plug-in is interfering but I don't see anything other than XML-RPC being activated. Have you tried using a newer version of XML-RPC? Is there anything suspicious being logged in the Trac log when you do an refresh of the options on the Mylyn query page?
(In reply to Steffen Pingel from comment #7) It is already the newest version (from trunk) Nothing suspicous in trac.log 2014-02-20 19:28:14,844 Trac[xml_rpc] DEBUG: RPC(xml) call by 'rainer', method 'ticket.type.getAll' with args: () 2014-02-20 19:28:14,844 Trac[session] DEBUG: Retrieving session for ID 'rainer' 2014-02-20 19:28:14,848 Trac[web_ui] DEBUG: RPC(XML-RPC) call by 'rainer' ticket.type.getAll 2014-02-20 19:28:14,852 Trac[xml_rpc] DEBUG: RPC(xml) 'ticket.type.getAll' result: [u'task']
OK, if the call to 'ticket.type.getAll' returns only [u'task'] - then it is obviously not a problem on the Eclipse side, do you agree?
(In reply to comment #9) > OK, if the call to 'ticket.type.getAll' returns only [u'task'] - then it is > obviously not a problem on the Eclipse side, do you agree? Yes, that's my assessment as well. Filing a bug against the XmlRpcPlugin may shed some light on this. The code that returns the ticket types looks very simple though (line 440 ff) so I suspect there is something in Trac that's causing ticket types to disappear: http://trac-hacks.org/browser/xmlrpcplugin/trunk/tracrpc/ticket.py
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