CalDAV - Vikunja gets stuck syncing and shows tasks as lists
I created a fresh Vikunja (0.24.6) Instance, created 3 Tasklists:
- the default "Inbox" List (displayed as "Eingang" in the german translation)
- Testlist
- Unterprojekt von Testlist
Only the Inbox list has 1 Task named "Test1" and 3 closed Tasks.
After that I added the account to Planify (4.14.0)
It gets synced successful for the first time and shows the 3 lists in the sidebar with the correct list names but the task "Test1" in the Inbox has no title and shows up as empty task in the list.
Then I go back to Vikunja and add a second task named "Test2"
When I now trigger a sync in Planify it gets stuck indefinitely and renames the "Inbox" list to "Test2".
When I complete the task Test2, it gets renamed to Test1, when I complete Test1 and there are no more open tasks in the list, the list gets renamed back to "Inbox". But syncing still hangs.
I was running some tests connecting through CalDAV and noticed that this CalDAV instance doesn’t handle a sync-token for task lists, so they can’t be synchronized. Instead, in the function to update the task list details, all task lists are returned, which is why during synchronization the task list takes on the name of the first task — a bit of strange behavior.
I also tested with tasks.org and saw that it handles this correctly. I think they apply some sort of filter to rename and update tasks at the same time. I’ll look into it further, but it’s definitely a very particular case.
Thank you very much, let me know if I can be of any help.
@alainm23, I see evidence of such tokens at kolaente.dev/vikunja/vikunja/issues/1163 and issues/753#issuecomment-54006, if of any use. Otherwise, perhaps this would be something worth suggesting to them? Some of the symptoms described in the latter are similar, too.
I do not have this issue, because Planify just crashes when starting to sync with Vikunja (I'm using the latest version for both apps). However, before crashing, it shows some Vikunja lists in the sidebar.
I use Vikunja with the Task.org and I have no trouble syncing between the two (except that recurring task do not appear in the Task.org app). Maybe @kolaente can be of help here ?
This might have the same cause as https://github.com/go-vikunja/vikunja/issues/475. Unsure what to do here tbh.
Maybe @kolaente should clarify but Vikunja docs still say "CalDAV integration is in an early alpha stage and has bugs", so expecting getting it working with Planify probably requires work on both projects.
I'm also interested, Planify would make a great desktop frontend for Vikunja, but when I looked at this months ago I assumed integration via Vikunja's API would be the way to go...looked at Planify's Todoist sync but it was way beyond my talents to see how that was relevant to Vikunja.