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)
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)
|
277 bytes,
text/plain
|
Details |
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.
| Assignee | ||
Comment 1•12 years ago
|
||
Here is an example vcard exported from Mac OS X 10.8 AddressBook.
| Assignee | ||
Updated•12 years ago
|
Whiteboard: [ c= p=1 s=2013.07.26 ]
Comment 2•12 years ago
|
||
Sergi, are you aware of this issue?
| Assignee | ||
Comment 3•12 years ago
|
||
One line fix to strip the \r characters in splitLines(). Also a unit test exposing the issue.
Attachment #777372 -
Flags: review?(sergi.mansilla)
| Assignee | ||
Updated•12 years ago
|
Attachment #777372 -
Attachment mime type: text/plain → text/html
| Assignee | ||
Comment 4•12 years ago
|
||
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?
Comment 5•12 years ago
|
||
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)
Updated•12 years ago
|
Flags: needinfo?(bkelly)
| Assignee | ||
Comment 6•12 years ago
|
||
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)
| Assignee | ||
Comment 7•12 years ago
|
||
Marking this as a dupe now that bug 883278 has landed. Thanks again Sergi!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Updated•12 years ago
|
blocking-b2g: leo? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•