syncevolution/src/backends
Patrick Ohly ba289c899f phone sync: delete<->delete conflict + phone calendar+todo sync (BMC #23744)
When deleting an item on phone and locally, the next sync fails with
ERROR messages about "object not found". This has several reasons:
- libsynthesis super data store attempts to read items
  which may or may not exist (triggers ERROR message)
- it checks for 404 but Evolution backends only return a generic
  database error (causes sync to fail)

It turned out that ReadItem and DeleteItem are expected to return a
404 status when the requested item does not exist. This patch documents
that (only in the TrackingSyncSource, though), adds tests and fixes
EDS, WebDAV, file and sqlite backends accordingly.

This patch also suppresses the 404 error logging inside DeleteItem(),
while still returning that error code to the Synthesis engine. Not
logging that particular situation is consistent with the previous
SyncEvolution behavior of silently returning successfully when there
wasn't anything to delete.

In addition, more recent libsynthesis versions also no longer do
a ReadItem() call to test for existence. That would still trigger
a spurious (albeit now harmless) ERROR message.
2011-11-14 21:17:02 +01:00
..
activesync ActiveSync: Google slow sync workaround + invalid sync key 2011-11-04 17:31:05 +01:00
addressbook testing: cleaned up ClientTestConfig 2011-09-13 08:43:23 +00:00
akonadi Merge remote branch 'origin/syncevolution-1-2-branch' 2011-10-17 13:16:33 +02:00
buteo Port build system to non-recursive Automake. 2011-08-30 16:38:34 +02:00
evolution phone sync: delete<->delete conflict + phone calendar+todo sync (BMC #23744) 2011-11-14 21:17:02 +01:00
file phone sync: delete<->delete conflict + phone calendar+todo sync (BMC #23744) 2011-11-14 21:17:02 +01:00
kcalextended testing: cleaned up ClientTestConfig 2011-09-13 08:43:23 +00:00
maemo Maemo Calendar: fix EXDATEs after reading from storage 2011-11-09 11:38:14 +01:00
qtcontacts testing: cleaned up ClientTestConfig 2011-09-13 08:43:23 +00:00
sqlite phone sync: delete<->delete conflict + phone calendar+todo sync (BMC #23744) 2011-11-14 21:17:02 +01:00
webdav phone sync: delete<->delete conflict + phone calendar+todo sync (BMC #23744) 2011-11-14 21:17:02 +01:00
xmlrpc Merge remote branch 'origin/syncevolution-1-2-branch' 2011-10-17 13:16:33 +02:00