Closed Bug 929480 Opened 11 years ago Closed 7 years ago

Gmail contacts import in v1-train build reports negative friends count

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: brion, Unassigned)

Details

Attachments

(1 file)

Attached image 2013-10-22-06-55-31.png
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release) Build ID: 20130910160258 Steps to reproduce: * Built and installed v1-train (v1.1.1.0-prerelease) on ZTE Open * ran Gmail contacts import with my personal email, successfully * started to run Gmail contacts import with my work email... Actual results: Import dialog shows "Found -182 friends to import", then the list contains one item. The account being imported here has only the one item in contacts (I guess everybody else is in some LDAP lookup!), so the list is the expected size but the dialog is not. Expected results: The number reported should match the size of the list (1 here...)
markExisting() in importer_ui.js appears to subtract the number of already-existing contacts from the number of importable contacts: var newValue = myFriends.length - Object.keys(existingContactsByUid).length; That gives 1 - 183 = -182 for my case. I'm not sure if existingContactsByUid is supposed to list every contact that exists presently, or only ones that match with the importable set, but it appears to actually contain every contact on the device.
Assignee: nobody → ferjmoreno
I can confirm that this is still happening on 2.2
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee: ferjmoreno → nobody
Status: ASSIGNED → NEW
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: