DAV Resource falls into an unrecoverable state after deleting todo items that where already deleted on the server side.
this bug is related to
Steps to Reproduce:
1. create a todo
2. delete that todo on computer A
3. event is not deleted on computer B because of Bug 328734
4. delete event on computer B
DAV Resource is in broken, offline state and never comes up again. The error message is:
Bei der Abfrage ist ein Problem aufgetreten. Der Eintrag wurde nicht vom Server gelöscht. Die Ressource kann nicht gelöscht werden. (401).
An error occured during a query. The entry was not deleted on the server. Resource cannot be deleted (401).
Although this bug is following Bug 328734. DAV Resource should detect that the item is already deleted on the server side and correct the synchronization error.
It should not fail to start after such an error
This bug is also related to Bug 335090, which shows a similar behavior of the DAV resource, but has a different trigger.
Created attachment 87025 [details]
changes file that causes the bug
I see this exact same bug. The only fix I seem to have come up with is to delete the calendars and folder from Kontact completely and re-add. I have tried to use akonadi console to flush the local cache, to remove invalid objects in the local store, re-sync and re-start. Nothing I do in the console ultimately resolves this.
(In reply to comment #2)
> I see this exact same bug. The only fix I seem to have come up with is to
> delete the calendars and folder from Kontact completely and re-add. I have
> tried to use akonadi console to flush the local cache, to remove invalid
> objects in the local store, re-sync and re-start. Nothing I do in the
> console ultimately resolves this.
beside clearing the cache you have to stop akonadi, remove agent_config_akonadi_davgroupware_resource_XX_changes.dat (where XX is the number of your resource) and restart akonadi afterwards to get the resource up again.
Git commit c9a781f5b61813da80a31793bb6ce90b6f2e9046 by Grégory Oestreicher.
Committed on 31/08/2014 at 16:43.
Pushed by goestreicher into branch 'KDE/4.14'.
Don't unnecessarily go offline
Check if the error returned by the jobs while creating,
modifying or deleting items are transient or final
and act accordingly.
Related: bug 335090
M +2 -1 resources/dav/common/davitemcreatejob.cpp
M +2 -3 resources/dav/common/davitemcreatejob.h
M +2 -1 resources/dav/common/davitemdeletejob.cpp
M +2 -3 resources/dav/common/davitemdeletejob.h
M +2 -1 resources/dav/common/davitemmodifyjob.cpp
M +2 -3 resources/dav/common/davitemmodifyjob.h
A +84 -0 resources/dav/common/davjobbase.cpp [License: GPL (v2+)]
A +78 -0 resources/dav/common/davjobbase.h [License: GPL (v2+)]
M +1 -0 resources/dav/resource/CMakeLists.txt
M +20 -3 resources/dav/resource/davgroupwareresource.cpp
*** This bug has been confirmed by popular vote. ***
This must've been fixed in 4.14.1, but feel free to reopen if I'm wrong.