Bug 205283 - After creating a new distribution list, duplicate entries are added to all contacts with same name but no details
Summary: After creating a new distribution list, duplicate entries are added to all co...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: 1.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-27 04:53 UTC by ben chang
Modified: 2016-09-24 19:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ben chang 2009-08-27 04:53:36 UTC
Version:            (using KDE 4.3.0)
OS:                Linux
Installed from:    Ubuntu Packages

I created a distribution list, and added some contacts to it.  Now when I view the "All Contacts" list, the ones I added to the new list appear twice.  Additionally, when I open one of the duplicates, all the fields are blank except the contact's name and email.  In each pair of original and duplicate contacts in the list, the duplicate bogus one appears first.  In this list view, on each original contact, the email address field appears to be vertically adjusted upwards, as if it had different line spacing; such that the top half of the text is obscured by the email address of the item above it.
Comment 1 ben chang 2009-08-27 23:33:14 UTC
The odd line spacing behavior also manifests if I add a contact with the same name as an existing contact through a .vcf.

The reason for it is that when the new, duplicate contact is added, a Carriage Return is added to the end of the name of the original contact.  This makes the "Formatted Name" field appear to be two lines, instead of one, so when it's displayed in the table view the text gets pushed up.  So there are actually several behaviors:

1. when adding contacts to a distribution list, unwanted duplicates may be generated.  I can't duplicate this behavior reliably, but it definitely happened once.

2. when adding contacts from a .vcf or other external source, if the contact's name is the same, it would be nice to have a "merge" option:  if the user is sure that the two contact records are for the same individual, combine the fields (e.g., adding multiple email addresses), and allow the user to choose how to resolve discrepancies (e.g., which home address is current).

3. in either case, and perhaps in other cases of importing or otherwise automatically generating contact records, having a duplicate record can result in an extraneous CR character added to the contact's name.

4. include code either to strip LF/CR when adding contacts, for fields which should always be one line, or set the vertical alignment to top instead of centered, or grow the row in the table view if a field has multiple lines.
Comment 2 Denis Kurz 2016-09-24 19:53:46 UTC
Thank you for your efforts you put into this bug. kab3 has long been deprecated, and so I close its old reports. If this bug/wish is still valid for kab3's successor kaddressbook in any recent version (5.0 or later, as part of KDE Applications 15.08.0 or later), please file a new bug against kaddressbook.