Closed Bug 1008987 Opened 10 years ago Closed 10 years ago

[Contacts][Merger] Thumbnail on contacts list disappear when importing same vCard/.vcf file several times

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:2.0M+, b2g-v2.0 affected, b2g-v2.0M verified, b2g-v2.1 verified)

VERIFIED FIXED
2.0 S4 (20june)
blocking-b2g 2.0M+
Tracking Status
b2g-v2.0 --- affected
b2g-v2.0M --- verified
b2g-v2.1 --- verified

People

(Reporter: mbudzynski, Assigned: mai)

References

Details

Attachments

(3 files)

**DESCRIPTION**
When we have a contact with photo as a Vcard on the SD card and import it several times there is no photo thumbnail on the contacts list.

**PATH**
1) export/put VCard file with contact that contains photo to the SD Card
2) remove the contact from your Contacts App
3) go to settings -> import -> import form SD Card
4) Get back to the contact list
5) Check if contact was importet properly
6) Repeat (3) & (4)

**EXPECTED**
Contact on the contacts list still looks the same 

**ACTUAL**
Contact on the contact list has no thumbnail, but still has  a photo in contacts details. When we will try (3) & (4) for the 3rd time, background merge will not recognize this contact as a duplicate, and will add it to the contacts list as a separate contact, with proper thumbnail. Going to contact details -> find duplicates will crash the Contacts App with an error:

JS ERROR at about:neterror?e=fileNotFound&u=app%3A//communications.gaiamobile.org/contacts/null&c=UTF-8&f=regular&m=app%3A//communications.gaiamobile.org/manifest.webapp&d=Firefox%20can%27t%20find%20the%20file%20at%20app%3A//communications.gaiamobile.org/contacts/null.:1226 in initPage: net-error
I was able to reproduce with 100% rate on todays master - ae15cfb697cc9127f9b909a5ba911186157f617c
Michal,

Are you actively working on a patch for this?

thanks
Flags: needinfo?(mbudzynski)
I'm not so far, feel free to take it.
Flags: needinfo?(mbudzynski)
Assignee: nobody → mri
Attached file patch v1.0
Hi Jose, 
would you mind reviewing the patch?
Regards
Attachment #8437682 - Flags: review?(jmcf)
Marina, could you please check Bug 1015094 as well - I feel the issue there could be similar. Thanks.
Flags: needinfo?(mri)
Comment on attachment 8437682 [details] [review]
patch v1.0

Thanks Marina,

Please land once Travis is green
Attachment #8437682 - Flags: review?(jmcf) → review+
We don't have Flame devices yet. I would suggest once this bug lands that Sergi checks
Flags: needinfo?(mri)
Master:6b5be16c8d1fd78936f05ce786a9cfd2eff38b2e
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S4 (20june)
blocking-b2g: --- → 2.0M?
This issue has been verified successfully on Flame2.1.
Reproducing rate: 0/5
See attachment: Verify_Flame_Contact.mp4

Flame2.1 build version:
Gaia-Rev        ccb49abe412c978a4045f0c75abff534372716c4
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/18fb67530b22
Build-ID        20141202001201
Version         34.0
This issue is verified fixed on Flame 2.1.

Result: The thumbnail on the contact list remains properly when the same contact is imported multiple times.

Device: Flame 2.1 (319mb, KK, Full Flash)
BuildID: 20141205001201
Gaia: 38e17b0219cbc50a4ad6f51101898f89e513a552
Gecko: 8b92c4b8f59a
Gonk: 48835395daa6a49b281db62c50805bd6ca24077e
Version: 34.0 (2.1)
Firmware: V188-1
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Status: RESOLVED → VERIFIED
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Blocks: Woodduck
blocking-b2g: 2.0M? → 2.0M+
Hi Kai-Zhen,
2.0M+. Thanks!
Flags: needinfo?(kli)
Attached video Woodduck Verify Video
This problem is verified not to happen on Woodduck2.0.
See attachment: Woodduck_verify_video.MP4
Occurrence rate: 0/10

Woodduck 2.0 build:
Gaia-Rev        add38992bbfb2bafca52ac1ce7f6231ac702675f
Gecko-Rev       8d951d9c4988e218ec08c6118a35c7faeb70af49
Build-ID        20141225143517
Version         32.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: