austgl / android-shuffle

Automatically exported from code.google.com/p/android-shuffle
0 stars 0 forks source link

Tracks 2.0 sync fails for tasks not currently active in Tracks #271

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure Shuffle to sync to a Tracks 2.0 host
2. Create a new task in Tracks and synchronize in Shuffle
3. Mark the task as completed in Tracks and synchronize in Shuffle

What is the expected output? What do you see instead?
The new task should be marked as completed in Shuffle. Instead there is no 
change in its status. In fact, any change of the task in Tracks does not get 
updated to Shuffle

What version of the product are you using? On what operating system?
Shuffle 1.7.2 with patch from bug 268. Android 2.2.

Please provide any additional information below.
The bug is that Tracks does not return the status of a task in todo.xml if it 
is not currently active (and that includes the task being complete). Shuffle 
requests the task details from Tracks but it only checks if the task is deleted 
(in TaskSynchronizer::deleteEntity() ).

This is fixed with the attached patches. The solution below uses 
mergeLocalAndRemoteEntityBasedOnModifiedDate which has to be made protected and 
may not be the best. It is the minimal change though and works.

Original issue reported on code.google.com by ptsampou...@gmail.com on 27 Sep 2011 at 5:02

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by andybry...@gmail.com on 6 Nov 2011 at 7:44