Closed Bug 885546 Opened 11 years ago Closed 11 years ago

VCF importer saves type="UTF-8" in contact fields

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:leo+, b2g18 fixed, b2g-v1.1hd fixed)

RESOLVED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- fixed
b2g-v1.1hd --- fixed

People

(Reporter: reuben, Assigned: sergi)

References

Details

(Whiteboard: [LeoVB+])

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #878820 +++

type is meant to be something like "home" or "work". The importer should not be saving that unless the vCard data actually specifies the type.
Hi Reuben,

Is it possible to get the VCF file(s) you are using to reproduce this bug?
Flags: needinfo?(reuben.bmo)
BEGIN:VCARD

VERSION:3.0

N;CHARSET=UTF-8:Bar;Foo;;;

FN;CHARSET=UTF-8:Foo Bar

BDAY;CHARSET=UTF-8:1975-05-20

TEL;CHARSET=UTF-8;TYPE=CELL:(123) 456-7890

EMAIL;CHARSET=UTF-8;TYPE=HOME:example@example.org

ORG;CHARSET=UTF-8:;

END:VCARD
Flags: needinfo?(reuben.bmo)
Attached patch Github PR (obsolete) — Splinter Review
Attachment #767921 - Flags: review?(francisco.jordano)
This fix is quite important. Fixes other issues discovered while investigating the utf8 bug.
Hei Sergi, should it be included in v1.1?

Basically I'm asking if it should be a leo+ :)
Attached patch New Github PRSplinter Review
Attachment #767921 - Attachment is obsolete: true
Attachment #767921 - Flags: review?(francisco.jordano)
Attachment #768363 - Flags: review?(francisco.jordano)
Comment on attachment 768363 [details] [diff] [review]
New Github PR

Thanks Sergi
Attachment #768363 - Flags: review?(francisco.jordano) → review+
Merged with SHA 1c290693db3fdeb1aa4ae98557ac983a8a32524f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
blocking-b2g: --- → leo?
This fix is crucial to be in leo since importing VCard functionality doesn't work at all without this fix. Besides the UTF-8 issue it solves a bad reference to `mozContact` that leaves the importer in a frozen state.

IMPORTANT: This fix should be uplifted AFTER https://bugzilla.mozilla.org/show_bug.cgi?id=878820 is uplifted.
(In reply to Sergi Mansilla from comment #9)
> This fix is crucial to be in leo since importing VCard functionality doesn't
> work at all without this fix. Besides the UTF-8 issue it solves a bad
> reference to `mozContact` that leaves the importer in a frozen state.
> 
> IMPORTANT: This fix should be uplifted AFTER
> https://bugzilla.mozilla.org/show_bug.cgi?id=878820 is uplifted.

I just asked if bug 878820 affects 1.1 branch.  if yes, triage will be willing to take the patch uplift for that bug and here too.
Assignee: nobody → sergi.mansilla
blocking-b2g: leo? → leo+
Merged in v1-train: 368489e25f9406d6339e4414d6ce52b0caac0e5d
Whiteboard: [LeoVB+]
v1.1.0hd: 7f91a5b614c0885fd9ea7e4c1c6c8789f67428d2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: