[OPIE 0000404]: incorrect importing of contacts in addressbook BIS

From: <opie-bugs.a.t.handhelds.org>
Date: Sun Nov 03 2002 - 10:45:55 EST

A BUGNOTE has been added to this bug.
=======================================================================
http://131.152.105.154/mantis/view_bug_page.php?f_id=0000404
=======================================================================
Reporter: mcm81
Handler: zecke
=======================================================================
Project: OPIE
Bug ID: 0000404
Category: PIM/PIM apps
Reproducibility: always
Severity: feature
Priority: normal
Status: assigned
=======================================================================
Date Submitted: 11-03-02 16:18 CET
Last Modified: 11-03-02 16:45 CET
=======================================================================
Summary: incorrect importing of contacts in addressbook BIS
Description:
sorry but i think you did't correct fully the bug, 'couse it seems that
you only asign Uid nuber = 1 to all new imported contacts: in this way all
new imported contact will have Uid=1 and when you go viewing addressbook
there will be a contact repeated a lot off time that masqurade the other
imported contacts (i resolve it hand-editing addressbook.xml and writing a
casual Uid number to all new contact imported).
=======================================================================

-----------------------------------------------------------------------
 zecke - 11-03-02 16:29 CET
-----------------------------------------------------------------------
please take a look at OPimRecord::setUid. If you setUid(1) an new UID will
be generated!
So when you receive a vCard we try to parse it. If it is 0 ( default for
empty ) we will setUid(1) it to generate a new uid.
Checking the sanity of the data may not really belong into the backend. I
maybe wrong.
Will ask eilers...

-----------------------------------------------------------------------
 zecke - 11-03-02 16:30 CET
-----------------------------------------------------------------------
rm addressbook.xml
and reimport your data and tell me how it does behave with the setUid(1)
patch applied

-----------------------------------------------------------------------
 mattzz - 11-03-02 16:45 CET
-----------------------------------------------------------------------
exactly. I beamed over all the addresses from my palm V and had the same
problems.

deleting the Uid-entries helped.

~/Applications/addressbook # cat addressbook.xml | sed 's/Uid="0"//' >
addressbook.xml.new
Received on Sun Nov 03 16:17:15 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:46:26 EDT