Bug 169102 - Info: "Unable to update attributes for http://jira.codehaus.org null" in org.eclipse.mylar.core
Summary: Info: "Unable to update attributes for http://jira.codehaus.org null" in org...
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 critical (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 170093 (view as bug list)
Depends on: 165389
Blocks:
  Show dependency tree
 
Reported: 2006-12-26 19:51 EST by Eugene Kuleshov CLA
Modified: 2007-02-15 14:08 EST (History)
1 user (show)

See Also:


Attachments
mylar/context/zip (28.83 KB, application/octet-stream)
2007-01-14 19:09 EST, Eugene Kuleshov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Kuleshov CLA 2006-12-26 19:51:03 EST
It seems like this execution path does include know workaround and I still see this error (btw, search for duplicates does not work for this stack trace too):

-- Error Log --
Date: Tue Dec 26 17:32:53 EST 2006
Message: Unable to update attributes for http://jira.codehaus.org  null
Severity: Info
Plugin ID: org.eclipse.mylar.core
Stack Trace:
org.tigris.jira.core.service.exceptions.AuthenticationException
at org.tigris.jira.internal.core.service.soap.SoapJiraService.getProjectsNoSchemes(SoapJiraService.java:204)
at org.tigris.jira.core.service.CachedRpcJiraServer.initializeProjects(CachedRpcJiraServer.java:193)
at org.tigris.jira.core.service.CachedRpcJiraServer.refreshDetails(CachedRpcJiraServer.java:117)
at org.eclipse.mylar.internal.jira.core.JiraServerFacade.refreshServerSettings(JiraServerFacade.java:117)
at org.eclipse.mylar.internal.jira.core.JiraRepositoryConnector.updateAttributes(JiraRepositoryConnector.java:319)
at org.eclipse.mylar.internal.tasks.ui.ScheduledTaskListSynchJob.run(ScheduledTaskListSynchJob.java:100)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Comment 1 Eugene Kuleshov CLA 2007-01-09 12:58:00 EST
I am still seeing this issue in v20070105-1700 build.
Comment 2 Eugene Kuleshov CLA 2007-01-09 14:08:57 EST
My current theory is that automatic updates for the repository attributes may kill the auth token if update takes too long. So, we could try to disable that automatic update for JIRA (completely, or have a checkbox in repository preferences that to disable that).

Other possibility could be to put some safeguard code around attributes retrieval or even run that in a separate job, to make it less destructive.
Comment 3 Eugene Kuleshov CLA 2007-01-14 19:09:29 EST
I've tried to debug it and come with the following findings:

-- Current JiraRepositoryConnector.ensureServerConnectionValid(..) method don't really do anything. The reason it works when user hit "Validate" in repository settings is because server instance is wiped out and created from scratch (effectively loosing any cached attributes).
-- I've tried to explicitly logout using  JiraServer.logout(), but it seems like there is a bug in jira core services, so even if logout method is called, locally cached login token is not reset.

All in all it seems like we can't do anything until this is fixed in jira core services.

Another weird thing in jira core services, that it swallow any errors during fetching query results and even it catches the auth exception login token also is not reset up there.
Comment 4 Eugene Kuleshov CLA 2007-01-14 19:09:31 EST
Created attachment 56883 [details]
mylar/context/zip
Comment 5 Mik Kersten CLA 2007-01-21 21:02:45 EST
*** Bug 170093 has been marked as a duplicate of this bug. ***
Comment 6 Mik Kersten CLA 2007-01-21 21:05:06 EST
Given comment#3, it looks like we're unfortunately stuck until the contribution for bug 165389 is approved.  
Comment 7 Mik Kersten CLA 2007-01-29 12:48:24 EST
Eugene: are you still seeing this on the latest dev build?  It stopped happening in my workspace once I added the add/remove server code to the connection reset.
Comment 8 Eugene Kuleshov CLA 2007-01-29 12:52:22 EST
(In reply to comment #7)
> Eugene: are you still seeing this on the latest dev build?  It stopped
> happening in my workspace once I added the add/remove server code to the
> connection reset.

It works ok when you online, but I noticed that it still fail when system goes offline (or in sleep/hybernate). The major problem is that JIRA core services don't report any errors back and just return empty result on query request.

Also, that logging to stdout is polluting my console window and I may loose some stack traces now...

Unknown Issue attribute: parent
Unknown Issue attribute: attachments
Unknown Issue attribute: subtasks
Comment 9 Mik Kersten CLA 2007-02-15 14:03:39 EST
Eugene: are you still seeing this?
Comment 10 Eugene Kuleshov CLA 2007-02-15 14:08:58 EST
I don't think original report is relevant anymore. Let's track further issues in a separate reports.