Opush
  1. Opush
  2. OP-163

A contact is recreated by Windows Phone 8 after being deleted in ui if it has been created twice on the WP8

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Normal Normal
    • Resolution: Unresolved
    • Affects Version/s: 3.0.6
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Wheezy OBM 3.1.2 + Opush 3.0.6
      Windows Phone 8 Lumia 920

    • Rank:
      6736

      Description

      Pre-conditions

      With a Windows Phone 8 Lumia 920

      Reproduction steps

      1. As usera with SP, create a contact "Name" and "123" in phone number
      2. As usera with SP, create exactly the same contact "Name" and "123" in phone number
      3. # As usera with SP, Synchronize
      4. Thanks to OP-139, there is only one contact created in OBM as you can see in obm-ui
      5. As usera with ui, delete the contact
      6. As usera with SP, synchronize

      Current behavior

      1. The contact is not deleted and reappears in obm-ui NOK

      Expected behavior

      1. The contact is deleted OK

      Additional informations

      opush.logs during synchronization after the deletion in obm-ui
      16:37:53.968 [DEBUG] {OBM-SYNC} [t290/c/r172/] action /login/doLogin, request {origin=[o-push], login=[usera@obm24.lyn.lng], password=[UserPassword{password=***}]}
      16:37:53.986 [DEBUG] {OBM-SYNC} [t290/c/r172/] response <?xml version="1.0" encoding="UTF-8"?><token xmlns="http://www.obm.org/xsd/sync/token.xsd">
      <sid>eb4953e7-b493-4c3c-8c54-a0c4cb1e6bfc</sid>
      <version major="3" minor="1" release="2"/>
      <email>usera@obm24.lyn.lng</email>
      <displayname>usera</displayname>
      <domain uuid="34d14acd-6b2f-6d5e-5f8f-bdd44e79e6e2">obm24.lyn.lng</domain>
      <settings>
      <setting name="set_display">no</setting>
      <setting name="set_lang">fr</setting>
      <setting name="set_cal_display_days">1111111</setting>
      <setting name="set_cal_first_hour">8</setting>
      <setting name="set_top_bar">yes</setting>
      <setting name="set_date">Y-m-d</setting>
      <setting name="set_dsrc">0</setting>
      <setting name="set_public_fb">0</setting>
      <setting name="set_todo">event_priority</setting>
      <setting name="set_mail">yes</setting>
      <setting name="set_cal_last_hour">20</setting>
      <setting name="set_menu">both</setting>
      <setting name="set_allday_opacity">TRANSPARENT</setting>
      <setting name="set_theme">default</setting>
      <setting name="set_debug">0</setting>
      <setting name="set_date_upd">m/d/Y</setting>
      <setting name="last_contact">40</setting>
      <setting name="set_timeformat">24H</setting>
      <setting name="set_commentorder">0</setting>
      <setting name="set_rows">20</setting>
      <setting name="set_cal_interval">2</setting>
      <setting name="set_csv_sep">;</setting>
      <setting name="displayed_popin">1</setting>
      <setting name="set_timezone">Europe/Paris</setting>
      <setting name="set_mail_participation">yes</setting>
      <setting name="set_day_weekstart">monday</setting>
      <setting name="seen_topbar_intro">yes</setting>
      </settings>
      <server-capabilities>
      <server-capability name="CALENDAR_HANDLER_SUPPORTS_STOREEVENT">true</server-capability>
      <server-capability name="HASH_IN_EVENT_SERIALIZATION">true</server-capability>
      <server-capability name="LOGIN_HANDLER_SUPPORTS_AUTHFAULT">true</server-capability>
      <server-capability name="CALENDAR_HANDLER_SUPPORTS_PAGINATION">true</server-capability>
      <server-capability name="CONFIDENTIAL_EVENTS">true</server-capability>
      <server-capability name="ADDRESS_BOOK_HANDLER_SUPPORTS_STORECONTACT">true</server-capability>
      <server-capability name="SERVER_SIDE_ANONYMIZATION">true</server-capability>
      <server-capability name="CALENDAR_HANDLER_SUPPORTS_NOTALLOWEDEXCEPTION">true</server-capability>
      </server-capabilities>
      </token>
      
      16:37:53.991 [WARN ] {org.obm.push.bean.Device} [t290/cFolderSync/r172/usera@obm24.lyn.lng] could not load hints for device type WP8 
      16:37:53.991 [INFO ] {AUTHENTICATION} [t290/cFolderSync/r172/usera@obm24.lyn.lng] Authentication success [login:usera@obm24.lyn.lng], the device [type:WP8] has been authorized.
      16:37:53.994 [WARN ] {org.obm.push.bean.Device} [t290/cFolderSync/r172/usera@obm24.lyn.lng] could not load hints for device type WP8 
      16:37:53.995 [INFO ] {REQUEST.FULL} [t290/cFolderSync/r172/usera@obm24.lyn.lng] <?xml version="1.0" encoding="UTF-8"?><FolderSync>
      <SyncKey>f4511dfa-7d27-4fd6-a24a-018e6b8349c5</SyncKey>
      </FolderSync>
      
      16:37:54.001 [INFO ] {IMAP.COMMAND} [t290/cFolderSync/r172/usera@obm24.lyn.lng] C: A0 STARTTLS
      16:37:54.005 [INFO ] {IMAP.COMMAND} [t290/cFolderSync/r172/usera@obm24.lyn.lng] Command status SUCCESS
      16:37:54.005 [INFO ] {IMAP.COMMAND} [t290/cFolderSync/r172/usera@obm24.lyn.lng] S: [A0] A0 OK Begin TLS negotiation now
      16:37:54.007 [INFO ] {IMAP.COMMAND} [t290/cFolderSync/r172/usera@obm24.lyn.lng] C: A1 LOGIN "usera@obm24.lyn.lng" "***"
      16:37:54.078 [INFO ] {IMAP.COMMAND} [t290/cFolderSync/r172/usera@obm24.lyn.lng] Command status SUCCESS
      16:37:54.079 [INFO ] {IMAP.COMMAND} [t290/cFolderSync/r172/usera@obm24.lyn.lng] S: [A1] A1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY LOGINDISABLED AUTH=PLAIN COMPRESS=DEFLATE IDLE] User logged in SESSIONID=<cyrus-30859-1422545873-1>
      16:37:54.079 [INFO ] {IMAP.COMMAND} [t290/cFolderSync/r172/usera@obm24.lyn.lng] C: A2 LSUB "" "*"
      16:37:54.080 [INFO ] {IMAP.COMMAND} [t290/cFolderSync/r172/usera@obm24.lyn.lng] Command status SUCCESS
      16:37:54.080 [INFO ] {IMAP.COMMAND} [t290/cFolderSync/r172/usera@obm24.lyn.lng] S: [*] * LSUB () "/" Drafts
      [*] * LSUB () "/" FolderDelaMort&ALU-QuiaTu&AOk-taSoeurElleapasInvent&AOk-labombe&AOA-neutron
      [*] * LSUB () "/" SPAM
      [*] * LSUB () "/" Sent
      [*] * LSUB () "/" Trash
      [*] * LSUB (\HasChildren) "/" folderTest
      [*] * LSUB () "/" folderTest/subFolderTest
      [*] * LSUB () "/" "Dossiers partag&AOk-s/mailshare"
      [A2] A2 OK Completed (0.000 secs 8 calls)
      16:37:54.093 [DEBUG] {OBM-SYNC} [t290/cFolderSync/r172/usera@obm24.lyn.lng] action /book/listAddressBooksChanged, request {sid=[eb4953e7-b493-4c3c-8c54-a0c4cb1e6bfc], lastSync=[1422545861640]}
      16:37:54.101 [DEBUG] {OBM-SYNC} [t290/cFolderSync/r172/usera@obm24.lyn.lng] response <?xml version="1.0" encoding="UTF-8"?><folder-changes xmlns="http://www.obm.org/xsd/sync/folder-changes.xsd" lastSync="1422545874096">
      <removed/>
      <updated>
      <folder uid="2">
      <name>contacts</name>
      <ownerLoginAtDomain>usera@obm24.lyn.lng</ownerLoginAtDomain>
      </folder>
      </updated>
      </folder-changes>
      
      16:37:54.111 [INFO ] {REQUEST.FULL} [t290/cFolderSync/r172/usera@obm24.lyn.lng] <?xml version="1.0" encoding="UTF-8"?><FolderSync>
      <Status>1</Status>
      <SyncKey>fe12afd6-9825-4e5a-8baf-ea36f1dbdaa7</SyncKey>
      <Changes>
      <Count>0</Count>
      </Changes>
      </FolderSync>
      
      16:37:54.191 [DEBUG] {OBM-SYNC} [t327/c/r173/] action /login/doLogin, request {origin=[o-push], login=[usera@obm24.lyn.lng], password=[UserPassword{password=***}]}
      16:37:54.215 [DEBUG] {OBM-SYNC} [t327/c/r173/] response <?xml version="1.0" encoding="UTF-8"?><token xmlns="http://www.obm.org/xsd/sync/token.xsd">
      <sid>95588483-8525-4eff-b18b-5698877e8024</sid>
      <version major="3" minor="1" release="2"/>
      <email>usera@obm24.lyn.lng</email>
      <displayname>usera</displayname>
      <domain uuid="34d14acd-6b2f-6d5e-5f8f-bdd44e79e6e2">obm24.lyn.lng</domain>
      <settings>
      <setting name="set_display">no</setting>
      <setting name="set_lang">fr</setting>
      <setting name="set_cal_display_days">1111111</setting>
      <setting name="set_cal_first_hour">8</setting>
      <setting name="set_top_bar">yes</setting>
      <setting name="set_date">Y-m-d</setting>
      <setting name="set_dsrc">0</setting>
      <setting name="set_public_fb">0</setting>
      <setting name="set_todo">event_priority</setting>
      <setting name="set_mail">yes</setting>
      <setting name="set_cal_last_hour">20</setting>
      <setting name="set_menu">both</setting>
      <setting name="set_allday_opacity">TRANSPARENT</setting>
      <setting name="set_theme">default</setting>
      <setting name="set_debug">0</setting>
      <setting name="set_date_upd">m/d/Y</setting>
      <setting name="last_contact">40</setting>
      <setting name="set_timeformat">24H</setting>
      <setting name="set_commentorder">0</setting>
      <setting name="set_rows">20</setting>
      <setting name="set_cal_interval">2</setting>
      <setting name="set_csv_sep">;</setting>
      <setting name="displayed_popin">1</setting>
      <setting name="set_timezone">Europe/Paris</setting>
      <setting name="set_mail_participation">yes</setting>
      <setting name="set_day_weekstart">monday</setting>
      <setting name="seen_topbar_intro">yes</setting>
      </settings>
      <server-capabilities>
      <server-capability name="CALENDAR_HANDLER_SUPPORTS_STOREEVENT">true</server-capability>
      <server-capability name="HASH_IN_EVENT_SERIALIZATION">true</server-capability>
      <server-capability name="LOGIN_HANDLER_SUPPORTS_AUTHFAULT">true</server-capability>
      <server-capability name="CALENDAR_HANDLER_SUPPORTS_PAGINATION">true</server-capability>
      <server-capability name="CONFIDENTIAL_EVENTS">true</server-capability>
      <server-capability name="ADDRESS_BOOK_HANDLER_SUPPORTS_STORECONTACT">true</server-capability>
      <server-capability name="SERVER_SIDE_ANONYMIZATION">true</server-capability>
      <server-capability name="CALENDAR_HANDLER_SUPPORTS_NOTALLOWEDEXCEPTION">true</server-capability>
      </server-capabilities>
      </token>
      
      16:37:54.218 [WARN ] {org.obm.push.bean.Device} [t327/cSync/r173/usera@obm24.lyn.lng] could not load hints for device type WP8 
      16:37:54.219 [INFO ] {AUTHENTICATION} [t327/cSync/r173/usera@obm24.lyn.lng] Authentication success [login:usera@obm24.lyn.lng], the device [type:WP8] has been authorized.
      16:37:54.222 [WARN ] {org.obm.push.bean.Device} [t327/cSync/r173/usera@obm24.lyn.lng] could not load hints for device type WP8 
      16:37:54.226 [INFO ] {REQUEST.FULL} [t327/cSync/r173/usera@obm24.lyn.lng] <?xml version="1.0" encoding="UTF-8"?><Sync>
      <Collections>
      <Collection>
      <SyncKey>1a6cd9f1-9280-48f0-8741-6cffbf9c7813</SyncKey>
      <CollectionId>12</CollectionId>
      <WindowSize>25</WindowSize>
      <Commands>
      <Add>
      <ClientId>oid{5e5:30001:2b}</ClientId>
      <ApplicationData>
      <Body>
      <Type>1</Type>
      <Data/>
      </Body>
      <FileAs>Name</FileAs>
      <FirstName>Name</FirstName>
      <MobileTelephoneNumber>123</MobileTelephoneNumber>
      </ApplicationData>
      </Add>
      <Add>
      <ClientId>oid{5e6:30001:2b}</ClientId>
      <ApplicationData>
      <Body>
      <Type>1</Type>
      <Data/>
      </Body>
      <FileAs>Name</FileAs>
      <FirstName>Name</FirstName>
      <MobileTelephoneNumber>123</MobileTelephoneNumber>
      </ApplicationData>
      </Add>
      </Commands>
      </Collection>
      </Collections>
      </Sync>
      
      16:37:54.242 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] action /book/listAllBooks, request {sid=[95588483-8525-4eff-b18b-5698877e8024]}
      16:37:54.256 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] response <?xml version="1.0" encoding="UTF-8"?><books xmlns="http://www.obm.org/xsd/sync/books.xsd">
      <book name="collected_contacts" readonly="false" uid="3"/>
      <book name="contacts" readonly="false" uid="2"/>
      <book name="public_contacts" readonly="false" uid="1"/>
      <book name="users" readonly="true" uid="-1"/>
      </books>
      
      16:37:54.259 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] action /book/getContactFromId, request {id=[40], sid=[95588483-8525-4eff-b18b-5698877e8024], bookId=[2]}
      16:37:54.266 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] response <?xml version="1.0" encoding="UTF-8"?><error xmlns="http://www.obm.org/xsd/sync/error.xsd">
      <message>Contact 40 not found</message>
      <type>org.obm.sync.exception.ContactNotFoundException</type>
      </error>
      
      16:37:54.267 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] action /book/listAllBooks, request {sid=[95588483-8525-4eff-b18b-5698877e8024]}
      16:37:54.273 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] response <?xml version="1.0" encoding="UTF-8"?><books xmlns="http://www.obm.org/xsd/sync/books.xsd">
      <book name="collected_contacts" readonly="false" uid="3"/>
      <book name="contacts" readonly="false" uid="2"/>
      <book name="public_contacts" readonly="false" uid="1"/>
      <book name="users" readonly="true" uid="-1"/>
      </books>
      
      16:37:54.278 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] action /book/storeContact, request {sid=[95588483-8525-4eff-b18b-5698877e8024], bookId=[2], contact=[<?xml version="1.0" encoding="UTF-8"?><contact xmlns="http://www.obm.org/xsd/sync/contact.xsd" collected="false"><hash>313130936</hash><first>Name</first><phones><phone label="CELL;VOICE;X-OBM-Ref1" number="123"/></phones><addresses/><websites/><emails/><instantmessaging/></contact>], clientId=[a422e29dcb9779da889e69b317aa7b6d95b34401]}
      16:37:54.325 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] response <?xml version="1.0" encoding="UTF-8"?><contact xmlns="http://www.obm.org/xsd/sync/contact.xsd" collected="false" uid="41">
      <hash>-1920039095</hash>
      <first>Name</first>
      <phones>
      <phone label="CELL;VOICE;X-OBM-Ref1" number="123"/>
      </phones>
      <addresses/>
      <websites/>
      <emails/>
      <instantmessaging/>
      </contact>
      
      16:37:54.331 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] action /book/listAllBooks, request {sid=[95588483-8525-4eff-b18b-5698877e8024]}
      16:37:54.342 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] response <?xml version="1.0" encoding="UTF-8"?><books xmlns="http://www.obm.org/xsd/sync/books.xsd">
      <book name="collected_contacts" readonly="false" uid="3"/>
      <book name="contacts" readonly="false" uid="2"/>
      <book name="public_contacts" readonly="false" uid="1"/>
      <book name="users" readonly="true" uid="-1"/>
      </books>
      
      16:37:54.345 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] action /book/getContactFromId, request {id=[41], sid=[95588483-8525-4eff-b18b-5698877e8024], bookId=[2]}
      16:37:54.359 [DEBUG] {OBM-SYNC} [t327/cSync/r173/usera@obm24.lyn.lng] response <?xml version="1.0" encoding="UTF-8"?><contact xmlns="http://www.obm.org/xsd/sync/contact.xsd" collected="false" uid="41">
      <hash>1565581575</hash>
      <first>Name</first>
      <addressbookid>2</addressbookid>
      <phones>
      <phone label="CELL;VOICE;X-OBM-Ref1" number="123"/>
      </phones>
      <addresses/>
      <websites/>
      <emails/>
      <instantmessaging/>
      </contact>
      
      16:37:54.359 [WARN ] {o.o.p.c.ContactsBackend$$EnhancerByGuice$$e4ed46a2} [t327/cSync/r173/usera@obm24.lyn.lng] A creation is discarded as a recent similar creation has been found
      16:37:54.376 [INFO ] {REQUEST.FULL} [t327/cSync/r173/usera@obm24.lyn.lng] <?xml version="1.0" encoding="UTF-8"?><Sync>
      <Collections>
      <Collection>
      <Class>Contacts</Class>
      <SyncKey>01f5bab0-9210-46c6-88e9-2d86d195f97e</SyncKey>
      <CollectionId>12</CollectionId>
      <Status>1</Status>
      <Commands>
      <Add>
      <ServerId>12:40</ServerId>
      <ApplicationData>
      <Contacts:FileAs>Name</Contacts:FileAs>
      <Contacts:FirstName>Name</Contacts:FirstName>
      <Contacts:MobileTelephoneNumber>123</Contacts:MobileTelephoneNumber>
      </ApplicationData>
      </Add>
      </Commands>
      <Responses>
      <Add>
      <ClientId>oid{5e5:30001:2b}</ClientId>
      <ServerId>12:41</ServerId>
      <Status>1</Status>
      </Add>
      <Add>
      <ClientId>oid{5e6:30001:2b}</ClientId>
      <ServerId>12:41</ServerId>
      <Status>1</Status>
      </Add>
      </Responses>
      </Collection>
      </Collections>
      </Sync>
      

      Additional informations

      Hopefully not reproductible with ipad (iOS 8.1.3), Nexus 7 (Android 4.4.3, 4.4.4 and 5.0.2), Fairphone FP1 (Android 4.2.2)

        Issue Links

          Activity

          Thomas HILAIRE made changes -
          Field Original Value New Value
          Link This issue relates to OP-186 [ OP-186 ]

            People

            • Assignee:
              Thomas HILAIRE
              Reporter:
              Stephane COLSON
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: