Bug 428192 - Mylyn shows only one ticket type: task
Summary: Mylyn shows only one ticket type: task
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on:
Blocks:
 
Reported: 2014-02-14 07:54 EST by Rainer Sokoll CLA
Modified: 2014-02-20 14:24 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Sokoll CLA 2014-02-14 07:54:42 EST

    
Comment 1 Rainer Sokoll CLA 2014-02-14 08:05:41 EST
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
Comment 2 Steffen Pingel CLA 2014-02-20 11:26:11 EST
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)?
Comment 3 Rainer Sokoll CLA 2014-02-20 11:33:46 EST
(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.
Comment 4 Rainer Sokoll CLA 2014-02-20 11:36:19 EST
Your test envoronment http://mylyn.org/trac-test/ shows all 3 ticket types.
Comment 5 Steffen Pingel CLA 2014-02-20 12:29:48 EST
(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.
Comment 6 Rainer Sokoll CLA 2014-02-20 12:43:23 EST
(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.
Comment 7 Steffen Pingel CLA 2014-02-20 13:19:47 EST
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?
Comment 8 Rainer Sokoll CLA 2014-02-20 13:33:00 EST
(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']
Comment 9 Rainer Sokoll CLA 2014-02-20 13:38:29 EST
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?
Comment 10 Steffen Pingel CLA 2014-02-20 14:24:53 EST
(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
Comment 11 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