Closed Bug 974725 Opened 10 years ago Closed 10 years ago

[B2G][NFC] Support different vcard mime types for Contacts

Categories

(Firefox OS Graveyard :: NFC, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(feature-b2g:2.0, b2g-v2.0 fixed)

RESOLVED FIXED
1.4 S5 (11apr)
feature-b2g 2.0
Tracking Status
b2g-v2.0 --- fixed

People

(Reporter: dgarnerlee, Assigned: dgarnerlee)

References

Details

Attachments

(1 file)

NFC Manager doesn't handle vcard variants: text/x-Vcard, text/x-vcard, etc.

NFC Manager currently only handles the "Well Known" mime-type "text/vcard", but not the other deprecated ones as referenced in:

http://www.ietf.org/rfc/rfc6350.txt, under:

10.1.  Media Type Registration

Android still sends text/x-vCard and text/x-vcard for example over P2P, so some interoperability is desirable.

There are two possible ways to handle this. Contacts app is updated to accept all variants, and NFC manager doesn't try to bridge this gap. Or NFC manager just treats them as special cases (as it does now for text/vcard only), and re-routes it to whatever is registered to handle that type.

Expected:
Decide which way to go, and update any handlers/parsers as needed.
Blocks: 894676, NFC-Gaia
Depends on: 903245
Garner, I assign this bug to you. If it is wrong assignment, please let me know.
Assignee: nobody → dgarnerlee
Depends on: 963556
Attachment #8394335 - Flags: review?(alive)
NFC manager cannot generically figure what vcard versions the app supports. So, this current change just treats text/vcard, text/x-vcard, text/x-vCard the same. If the application fails to import or handle it, the user can just try again with another contacts-type app with better vcard import support.

UX/Decision feedback is welcome.
Attachment #8394335 - Flags: review?(alive) → review+
Blocks: b2g-NFC-2.0
No longer blocks: b2g-NFC-2.0
Minor: fixed a MozActivity test reference error.

Green: https://travis-ci.org/mozilla-b2g/gaia/builds/21981604
Keywords: checkin-needed
Master: https://github.com/mozilla-b2g/gaia/commit/3864767928fa40d99e734cfe3dd736aaaa09891f
Status: NEW → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.5 S1 (9may)
Target Milestone: 1.5 S1 (9may) → 1.4 S5 (11apr)
feature-b2g: --- → 2.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: