This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 257320 - a reopened bugzilla task is shown with grayed strikethrough font in the task list
Summary: a reopened bugzilla task is shown with grayed strikethrough font in the task ...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 3.1   Edit
Assignee: Frank Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-12-02 23:13 EST by David Green CLA
Modified: 2009-01-12 20:07 EST (History)
2 users (show)

See Also:


Attachments
screenshot showing problem (4.51 KB, image/png)
2008-12-02 23:14 EST, David Green CLA
no flags Details
the exported task (1.49 KB, application/octet-stream)
2008-12-03 01:16 EST, David Green CLA
no flags Details
screenshot showing task with good font but not a subtask (25.46 KB, image/png)
2008-12-03 11:24 EST, David Green CLA
no flags Details
diff between old exported task and new exported task (19.70 KB, image/png)
2008-12-03 11:33 EST, David Green CLA
no flags Details
the new task export (1.47 KB, application/octet-stream)
2008-12-03 11:33 EST, David Green CLA
no flags Details
patch (1.47 KB, patch)
2009-01-04 10:44 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (4.59 KB, application/octet-stream)
2009-01-04 10:44 EST, Frank Becker CLA
no flags Details
patch with jUnit (4.01 KB, patch)
2009-01-04 16:36 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (1.58 KB, application/octet-stream)
2009-01-04 16:36 EST, Frank Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Green CLA 2008-12-02 23:13:10 EST
see attached screenshot
Comment 1 David Green CLA 2008-12-02 23:14:32 EST
Created attachment 119348 [details]
screenshot showing problem
Comment 2 Steffen Pingel CLA 2008-12-02 23:51:09 EST
The task shows up in black in my task list. Have you tried synchronizing the task? The task list update might have missed it.
Comment 3 David Green CLA 2008-12-02 23:54:00 EST
(In reply to comment #2)
> The task shows up in black in my task list. Have you tried synchronizing the
> task? The task list update might have missed it.

I've tried synchronizing the task, synchronizing the query in the task list and opening the task editor.  Nothing seems to work.  In my eyes this is pretty major since the appearance in the task list is a visual indicator if follow-up is needed.
Comment 4 Steffen Pingel CLA 2008-12-03 00:23:59 EST
Agreed. My assumption was that the underlying cause was a temporary network problem. Rob, how is the task in question showing up for you?
Comment 5 Robert Elves CLA 2008-12-03 00:36:30 EST
(In reply to comment #4)
> Agreed. My assumption was that the underlying cause was a temporary network
> problem. Rob, how is the task in question showing up for you?
It is displayed correctly here but I created a new query to get it into my task list.  Will do some quick manaul testing here.
Comment 6 Robert Elves CLA 2008-12-03 01:02:30 EST
Can't reproduce here.  David, have you tried deleting the sub task and resynching the parent?  This might get it back to normal but perhaps before doing this, make a copy the offline task data for this particular task and your tasklist in case we need you to check something.

Steffen, could this arise from the offline task data being up to date but the task itself not having been update (due to a crash at the right moment)?
Comment 7 David Green CLA 2008-12-03 01:13:08 EST
(In reply to comment #6)
> before doing this, make a copy the offline task data for this particular task and your
> tasklist in case we need you to check something.

How would I go about making such a backup?

Setting the severity to major since it was at enhancement
Comment 8 David Green CLA 2008-12-03 01:16:11 EST
Created attachment 119349 [details]
the exported task
Comment 9 Robert Elves CLA 2008-12-03 01:18:53 EST
Just copy the following two files somewhere for safe keeping:
~/workspace/.metadata/.mylyn/ tasklist.xml.zip
~/workspace/.metadata/.mylyn/offline/https%3A%2F%2Fbugs.eclipse.org%2Fbugs$/256718.zip
Comment 10 Steffen Pingel CLA 2008-12-03 02:13:56 EST
A forced synchronization should overwrite the task data and update the tasks status. Did anything in Bugzilla recently change that could affect the parsing of search results or updating of the task from task data? 

I noticed in my task list that tasks sometimes show up as "[id]: " before being fully synchronized. It seems that the summary is not updated when partial task data is returned. Maybe that is related to this bug?
Comment 11 Robert Elves CLA 2008-12-03 02:25:11 EST
(In reply to comment #10)
> I noticed in my task list that tasks sometimes show up as "[id]: " before being
> fully synchronized. It seems that the summary is not updated when partial task
> data is returned. Maybe that is related to this bug?
wow, I haven't seen this myself but could be related. I'm not aware of any recent changes that could have affected this but will dig around.
Comment 12 David Green CLA 2008-12-03 11:24:20 EST
Created attachment 119394 [details]
screenshot showing task with good font but not a subtask

I've taken a backup and then deleted the task from the task list.  After synchronizing the query the task reappears with the proper font and without the completed checkmark as expected, however.... the task no longer appears as a subtask despite the fact that it blocks another task.

See attached screenshot
Comment 13 David Green CLA 2008-12-03 11:33:04 EST
Created attachment 119395 [details]
diff between old exported task and new exported task

I exported the task again, unzipped it and did a diff on the files in the new export versus the old export.  The only difference that I found between the two is that the old tasklist.xml has 

@EndDate="1969-12-31 16:00:00.0 PST@

whereas the new export has 

@EndDate=""@
 
I've attached a screenshot showing the diff
Comment 14 David Green CLA 2008-12-03 11:33:28 EST
Created attachment 119396 [details]
the new task export
Comment 15 Frank Becker CLA 2009-01-04 10:44:33 EST
Created attachment 121484 [details]
patch

I found a fix for this.

If a task was reopened the CompletionDate exists and was not set to null.
Comment 16 Frank Becker CLA 2009-01-04 10:44:38 EST
Created attachment 121485 [details]
mylyn/context/zip
Comment 17 Steffen Pingel CLA 2009-01-04 11:30:16 EST
Great work! Frank, would you be able to create a test case for this bug?
Comment 18 Frank Becker CLA 2009-01-04 16:36:35 EST
Created attachment 121496 [details]
patch with jUnit

here some testcases
Comment 19 Frank Becker CLA 2009-01-04 16:36:39 EST
Created attachment 121497 [details]
mylyn/context/zip
Comment 20 Robert Elves CLA 2009-01-08 17:45:37 EST
Patch applied, iplog updated.