Bug 68989 - Sync return modified=true with same vCard
Summary: Sync return modified=true with same vCard
Status: RESOLVED FIXED
Alias: None
Product: SyncEvolution
Classification: Unclassified
Component: PIM Manager (show other bugs)
Version: 1.4
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: SyncEvolution Community
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-05 16:29 UTC by Eugenio Parodi
Modified: 2013-09-05 18:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Eugenio Parodi 2013-09-05 16:29:13 UTC
Hi.

Version used:
SyncEvolution 1.3.99.3+20130529+SE+b989f69+SYSYNC+3366831 (pre-release)

Sometimes after a Sync with an unmodified addressbook,
the return value of SyncPeer show "modified" contacts.

i.e.
method return sender=:1.3 -> dest=:1.0 reply_serial=70
   array [
      dict entry(
         string "added"
         variant             int32 0
      )
      dict entry(
         string "modified"
         variant             boolean true
      )
      dict entry(
         string "removed"
         variant             int32 0
      )
      dict entry(
         string "updated"
         variant             int32 1
      )
   ]


This Issue seems common with a phone synchronization because the "TYPE" of the fields used is mainly Producer Dependent.

I noticed that it depend on the vCard format exported by the device:

This vCard works fine

BEGIN:VCARD
VERSION:3.0
N:Gump;Forrest
FN:Forrest Gumperton
TEL;TYPE=CELL:(88) 8885 5555
END:VCARD

This vCard instead, every time is imported, is considered different:
(The only difference with the previous is the "VOICE" field)

BEGIN:VCARD
VERSION:3.0
N:Gump;Forrest
FN:Forrest Gumperton
TEL;TYPE=CELL,VOICE:(88) 8885 5555
END:VCARD
Comment 1 Patrick Ohly 2013-09-05 18:21:52 UTC
(In reply to comment #0)
> Hi.
> 
> Version used:
> SyncEvolution 1.3.99.3+20130529+SE+b989f69+SYSYNC+3366831 (pre-release)
> 
> Sometimes after a Sync with an unmodified addressbook,
> the return value of SyncPeer show "modified" contacts.

Sounds like this bug, which was fixed in 1.3.99.4 (from the NEWS file):

* EDS contacts: avoid unnecessary DB writes during slow sync

  Traditionally, contacts were modified shortly before writing into EDS
  to match with Evolution expectations (must have N, only one CELL TEL,
  VOICE flag must be set). During a slow sync, the engine compare the
  modified contacts with the unmodified, incoming one. This led to
  mismatches and/or merge operations which end up not changing anything
  in the DB because the only difference would be removed again before
  writing.

Please try with 1.3.99.4 and reopen the bug if the problem still exists.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.