@devvv4ever OK many thanks for this information.
I found an old project on github : https://github.com/caffeinatedgoat/davdroid-davx5
this project is based on 2.5.5-beta1-ose version.
I clone it, just change in /dav4jvm/build.gradle.kts the kotlin version to 1.3.50 and I build the project.
Result -> sync run
The new version probably need STATUS can’t be null.
I will check this in Baikal.
Thanks for help.
Task sync occasionally deletes all tasks locally
this happens since upgrade to 0.9.x, after automatic sync some tasks and calendar events are lost. I need to sync them manually, Accounts->dacdroid->“Sync now”. The data is on ownCloud server but it not saved on mobile device.
I suppose it was a change in new sync algorithm introduces in 0.9.x. It doesn’t happen on another device with older version of davdroid.
- Please provide detailed steps to reproduce. The problem didn’t occur in our tests and without detailed information, we can’t do anything except guessing around.
- Thanks for the report, but I don’t know whether this issue is really worth investigating because DAVdroid is pre-1.0 yet, and you can just install 0.9 and go.
- OwnCloud 8.1 with ~20 lists and calendars
- some task lists have +100 done and +50 not done tasks
- Most calendars are empty, or have a few events
- Edit or add new task on mobile using Tasks application from F-Droid (DavDroid is also from F-Droid)
- Tasks and calendars sync on change and every 4hours
- Leave device for a few minutes/hours
- Pick up device
- Only a few (2-5) list have any elements, all other lists are empty
- Go to account -> davdroiv -> tasks and “Sync now”
- All list are complete now
@akero Did you check the tasks app (when you open it) or only the widget?
Both. This annoying behavior is since 0.8.4. I have one device with latest version of davdroid and one with 0.8.4 - I don’t want to upgrade due to this bug. 0.8.4 works fine all the time with all lists, calendars and tasks.
Ok, I’ll get you the log next week. Sorry, but can’t do it sooner. Temporary fix for me is to disable global sync and refresh lists manually.
@akero Ok. I have experienced the “tasks disappear in the widget” problem myself, so you’re really sure that the lists are empty in the Tasks app, too?
Yes, I open Tasks application and see the list where only a few top lists have items.
And I don’t even use task widget on device with 0.9.x
I think I have found the problem:
AndroidTask.delete()didn’t delete a specific task (as it should) locally, but all tasks. That means if
- you delete a task in the CalDAV calendar,
- and then synchronize (automatically or manually),
- DAVdroid will see that the task is missing and try to delete it locally, but by mistake delete all tasks locally,
- continue synchronization and download the remaining tasks. If the delete operation was the last one, there are no tasks left, otherwise some tasks are left.
- At next synchroniziation, the remaining tasks (which have been deleted locally) are downloaded again.
This has been fixed with ical4android/7df1b515.
Sounds great, thanks!
I can confirm this works, so I sent you a donations. Thanks!