Closed Bug 895108 Opened 12 years ago Closed 12 years ago

contacts fails to import vcard generated by Mac OS X AddressBook

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 883278

People

(Reporter: bkelly, Assigned: bkelly)

Details

(Whiteboard: [ c= p=1 s=2013.07.26 ])

Attachments

(1 file, 1 obsolete file)

Currently both gaia master and v1-train fail to import vcards exported from the Mac OS X AddressBook. Debug suggests that the issue is an end-of-line character issue. These vcards end in \r\n instead of just \n.
Here is an example vcard exported from Mac OS X 10.8 AddressBook.
Whiteboard: [ c= p=1 s=2013.07.26 ]
Sergi, are you aware of this issue?
One line fix to strip the \r characters in splitLines(). Also a unit test exposing the issue.
Attachment #777372 - Flags: review?(sergi.mansilla)
Attachment #777372 - Attachment mime type: text/plain → text/html
Nominating for leo. It seems like there could be many vcards out there using alternate line endings and when we hit this there is no feedback to the user. The import just hangs until the app is killed.
blocking-b2g: --- → leo?
Hi Ben, I believe this should be fixed by https://github.com/mozilla-b2g/gaia/pull/11048, which was just merged. Can you confirm? Its bug is https://bugzilla.mozilla.org/show_bug.cgi?id=883278
Flags: needinfo?(bkelly)
Flags: needinfo?(bkelly)
Comment on attachment 777372 [details] Pull request at https://github.com/mozilla-b2g/gaia/pull/11032 Yep, the import works now that https://github.com/mozilla-b2g/gaia/pull/11048 has landed. I think it might have been nice to keep these issues separated in different commits, but it probably doesn't matter if they are both going to be uplifted. Thanks!
Attachment #777372 - Attachment is obsolete: true
Attachment #777372 - Flags: review?(sergi.mansilla)
Marking this as a dupe now that bug 883278 has landed. Thanks again Sergi!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
blocking-b2g: leo? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: