Bug 170093 - Exception when double clicking tasklist catagory tied to JIRA
Summary: Exception when double clicking tasklist catagory tied to JIRA
Status: RESOLVED DUPLICATE of bug 169102
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-10 11:23 EST by Alan Berezin CLA
Modified: 2007-01-26 13:33 EST (History)
2 users (show)

See Also:


Attachments
mylar/context/zip (1.96 KB, application/octet-stream)
2007-01-26 13:33 EST, Mik Kersten CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Berezin CLA 2007-01-10 11:23:14 EST
Eclipse Build id: M20060921-0945
Mylar 1.01
jira plugin 1.01

I have a TaskList catagory that is a synchronized to a JIRA respos for a specific server side (jira server) saved query.
The tasklist catagory is displayed not expanded and does not have a "+" sign (I am not sure why).
I double click it and get a Mylar Error dialog
Dialog reports "Reason: Jira Authentication Failure"
Behind that dialog window is Edit Repository Query window.

Error log has this:

!ENTRY org.eclipse.mylar.core 4 0 2007-01-10 10:06:21.580
!MESSAGE Jira Authentication Failed.

Please check your Jira username and password in the Task Repositories view

!STACK 0
org.tigris.jira.core.service.exceptions.AuthenticationException
	at org.tigris.jira.internal.core.service.soap.SoapJiraService.getSavedFilters(SoapJiraService.java:341)
	at org.tigris.jira.core.service.CachedRpcJiraServer.getNamedFilters(CachedRpcJiraServer.java:496)
	at org.eclipse.mylar.internal.jira.core.ui.wizards.JiraQueryWizardPage$3.run(JiraQueryWizardPage.java:185)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)


Interestly, when I closed eclipse and restarted, the problem cannot be reproduced.  Furthermore, the "+" sign exists for the catagory and I can see that it is synchonized.
Comment 1 Joel Rosi-Schwartz CLA 2007-01-10 11:40:31 EST
I have the same problem and I normally use the following workaround: I go to the Task Repositories view, I select my repository of interest, I click on the Properties menu item from the context menu and I revalidate the repository parameters with the "Validate" button in the wizard. I then return to the Task List view and resyncrhonize the query and all my issues show up.

My problem though is that I keep on losing my query results throughout my day, so that I am forced to repeat the procedure outlined above at least ten times per day, which is a little excessive.
Comment 2 Eugene Kuleshov CLA 2007-01-10 12:42:40 EST
This issue is similar to bug 169102 (though happens trough different execution path). We are still trying to figure out how to resolve this.
Comment 3 Mik Kersten CLA 2007-01-21 21:02:45 EST
Yes, this is bug 169102, and it seems to happen to me even more often now.  I have put the work-around (stated in comment#1) on top of the JIRA FAQ entry: https://bugs.eclipse.org/bugs/show_bug.cgi?id=169102



*** This bug has been marked as a duplicate of bug 169102 ***
Comment 4 Eugene Kuleshov CLA 2007-01-21 21:34:50 EST
Mik, please note that neither validate nor workarounds that we have in the code don't help with that. The only thing that works is to actually remove repository and add it back (basically clean all the locally cached data), which can be done by clicking OK on repository preferences dialog.
Comment 5 Mik Kersten CLA 2007-01-21 22:04:36 EST
Hmm, what if for now we make "Update Attributes" action on the Task Repository delete and add the server?  I think that causes core services to discard cached data, but I'm not completely sure.
Comment 6 Eugene Kuleshov CLA 2007-01-21 22:13:38 EST
That would work. We'll have to do that for nearly any JIRA operation to make sure that connection is alive... Right now I don't know any other way to reset that auth data... except an evil hack with reflection api.
Comment 7 Mik Kersten CLA 2007-01-22 12:46:08 EST
But if we do this for every JIRA operation, and not just have it invoked manually, then don't we trigger the very slow operation of getting all attributes on a repository like CodeHaus?  Still, just about anything is better than the horribly flaky behavior that we have now.  What I don't get is why it seems to have degraded so much since 1.0.1.
Comment 8 Eugene Kuleshov CLA 2007-01-22 15:17:34 EST
I think it was always like this. 

We can add it to query synchronization and any task data retrieval that happens in background, so it shouldn't be too bad because of background operation. What may be critical is to not trigger it when task data is synchronized when editor is opened.
Comment 9 Mik Kersten CLA 2007-01-26 13:33:36 EST
OK, for today's build, which should be available soon, every query calls a new JiraServerFacade.forceServerReset(..) method which removes and then re-adds the server.  Chances are that it wasn't actually Validate Settings that was fixing this, but this add/remove that happens when the Task Repository is changed.
Comment 10 Mik Kersten CLA 2007-01-26 13:33:38 EST
Created attachment 57614 [details]
mylar/context/zip