dmfs / opentasks

A task app for Android
Apache License 2.0
940 stars 247 forks source link

Dublicate tasks occuring #183

Open forestmountain opened 8 years ago

forestmountain commented 8 years ago

I created a task on my Android phone with 3-4 items on a list. Tasks is synced with my ownCloud server. Three days after the creation I noticed that 5 similar tasks had occurred. I deleted all but one, today 8 similar tasks had occurred. I don't know if this is a Tasks issue or ownCloud issue. I haven't accessed the tasks from within ownCloud, only from Android.

ShinyShrimp commented 8 years ago

I'm having the same issue. When I create one task in OpenTasks its getting dublicated and when I create the task in own cloud its not getting dublicated.

forestmountain commented 8 years ago

Can confirm that tasks created in ownCloud doesn't get dublicated. It's apparently only happening when the tasks is created on the phone through OpenTasks.

dmfs commented 8 years ago

Which sync apps and which ownCloud version do you use? It's quite unlikely that the task is duplicated by OpenTasks itself, it's more likely to be a bug in the sync app (or maybe in ownCloud).

forestmountain commented 8 years ago

I'm using CalDAV-Sync (from Marten Gajda) against ownCloud 8.2.1 with Tasks+ 1.0.3. It may be a bug in the Tasks+ app for ownCloud as it is marked Experimental. Funny is that my duplicate problem started after a update of OpenTasks. But I surely wouldn't rule out Tasks+ or CalDAV-Sync. I'll keep digging.

dmfs commented 8 years ago

Here is what you can do to find the instance that created the duplicate task: 1) Get the URLs of all "versions" of the duplicated task (that's the tricky part, you can look into the database or maybe tasks+ gives you the link). 2) look up the file names of these tasks in your http server log

If the duplicate has been created over the CalDAV interface you should find a PUT request to the path with a response code of "201".

Also it will be helpful if you can send us the content of the duplicated tasks.

Is this issue reproducible? Does it happen every time you create a task in OpenTasks or only under certain circumstances?