View Issue Details

IDProjectCategoryView StatusLast Update
0000799SOGoWeb Address Bookpublic2017-06-27 13:05
ReporterMarcel Assigned Tofrancis  
Status resolvedResolutionfixed 
Product Version1.3.1 
Target Version3.0.0Fixed in Version3.2.10 
Summary0000799: List, preview pane, and edit window can disagree on primary/alternate Email address (swapped)

Sometimes (reproducible ways detailed below), both by creating a new address book entry in the Web UI or by importing it, resulting in a confusion between primary and alternate email address. Then, the address preview shows primary/secondary in one order, while the editing window shows them the other way round.

The address book list entry shows "Joe User,", the preview pane below shows

Joe User
Additional Email:
So far, so good, this seems to match. However, when double-clicking on the entry, the edit window shows the following:
Display: Joe User
Additional Email:
i.e., primary and secondary mail are swapped here (and they remain so, even if one or both entries are modified).

It seems that different parts of the code seem to use different criteria for determining the primary and secondary address.

This can be greatly confusing and baffling for users. It can easily occur during import of a common VCARD (see below), but it can also be produced (and fixed) in the UI.

Additional Information

** How to create such an entry:

  • Option 1 (easy and common):
    Import the following VCARD:

FN:Joe User

This UI weirdness seem to happen for all entries where a type=HOME address appears before a type=WORK one. (The actual email address does not seem to matter, just the type)

  • Option 2 (rare; I only ran into this one while trying to recover from the above import errors):
    In the web interface, create a new entry, set the Name and fill in the "Additional Email" field with "" only (leave "Email" empty, only fill in "Additional Email"!), then save. Reopen, and add an "Email" field with "", save. Now, the primary address for list and preview are the "", whereas the primary address in the edit window is "".

** How to fix the problem
Just changing either or both of the addresses does not restore correct ordering. The following process however does:
Edit the entry, cut the "Additional Email" address ("" in this example), save. Now all three views (list, preview, and edit) agree on primary/secondary. Re-edit the entry, and paste "" back into "Additional Email", save. The three views continue to agree.

TagsNo tags attached.




2011-01-07 14:56

reporter   ~0002011

Francis: Do you need any additional information or other form of help?

Related Changesets

sogo: master 9bde9b66

2017-06-21 16:29


Details Diff
Improve identification of preferred elements

Fixes 0000799
Affected Issues
mod - SOPE/NGCards/NGVCard.m Diff File

Issue History

Date Modified Username Field Change
2010-09-02 10:39 Marcel New Issue
2010-10-07 14:49 francis Status new => assigned
2010-10-07 14:49 francis Assigned To => francis
2011-01-07 14:56 Marcel Note Added: 0002011
2015-06-11 20:06 ludovic Target Version => 3.0.0
2017-06-22 15:56 francis Changeset attached => sogo master 9bde9b66
2017-06-22 15:56 francis Resolution open => fixed
2017-06-27 13:05 francis Status assigned => resolved
2017-06-27 13:05 francis Fixed in Version => 3.2.10