Abstract: | This document specifies an XMPP extension for use of the vCard4 XML format in XMPP systems, with the intent of obsoleting the vcard-temp format. |
Authors: | Samantha Mizzi, Peter Saint-Andre |
Copyright: | © 1999 - 2011 XMPP Standards Foundation. SEE LEGAL NOTICES. |
Status: | Experimental |
Type: | Standards Track |
Version: | 0.1 |
Last Updated: | 2011-03-02 |
WARNING: This Standards-Track document is Experimental. Publication as an XMPP Extension Protocol does not imply approval of this proposal by the XMPP Standards Foundation. Implementation of the protocol described herein is encouraged in exploratory implementations, but production systems are advised to carefully consider whether it is appropriate to deploy implementations of this protocol before it advances to a status of Draft.
1. Introduction
2. Requirements
3. XML Namespace
4. Encapsulation
5. PubSub Binding
5.1. Location
5.2. Subscribing to a vCard
5.3. Publishing/Updating a vCard
5.4. Receiving a vCard
5.5. Implicit Interactions with vCard
5.5.1. Retrieving vCard
6. Security Considerations
7. IANA Considerations
8. Open Issues
9. Acknowledgements
Appendices
A: Document Information
B: Author Information
C: Legal Notices
D: Relation to XMPP
E: Discussion Venue
F: Requirements Conformance
G: Notes
H: Revision History
Since 1999, the Jabber/XMPP community has used an interim, unofficial XML representation of vCard data for personal contacts, called vcard-temp [1]. Recently, the IETF has upgraded vCard from vCard3 to vCard4 [2], and at the same time has defined vCard4 XML [3] as an official XML format for vCard4. This document specifies an XMPP extension for use of the vCard4 XML format in XMPP systems, with the intent of obsoleting the vcard-temp format. Primarily this document defines the encapsulation method itself; secondarily it also defines transport methods and a mapping to the vcard-temp format for migration by clients and servers.
This specification was designed with the following documents in mind.
Because there is now an XML namespace for the official vCard format, we can simply re-use that namespace: "urn:ietf:params:xml:ns:vcard-4.0".
The vCard XML format defined at the IETF specifies that the root element is <vcards/>, where the only defined child element is <vcard/>. For use in XMPP, we specify that the root element shall be <vcard/>, not <vcards/>.
When the Personal Eventing Protocol (PEP) "flavor" of XMPP publish-subscribe is used, the canonical location for a user's vCard is a pubsub node whose name is "urn:ietf:params:xml:ns:vcard-4.0". For instance, if the Shakespearean character Romeo has a JabberID of 'romeo@montague.lit' then his vCard would be located at that JID with a node of "urn:ietf:params:xml:ns:vcard-4.0".
When "raw" Publish-Subscribe [5] is used, the location is a generic publish-subscribe node that is not attached to an user's IM account.
Use of PEP is RECOMMENDED to simplify the process of discovering and subscribing to the vCard information.
Let us imagine that Juliet wishes to receive the updates that Romeo publishes to his vCard. She has two options:
Romeo can publish/update a vCard via XMPP pubsub. Currently there is no method for partial updates of a vCard, and the entire vCard must be sent to the server in order to update any part of the vCard. Publish-subscribe is done in accordance with XEP-0060, section 7.1.
<iq from='romeo@motague.lit/office id='v1' to='romeo@motague.lit' type='set'> <pubsub xmlns='http://jabber.org/protocol/pubsub'> <publish node='urn:ietf:param:xml:ns:vcard-4.0'> <item> <vcard xmlns="urn:ietf:params:xml:ns:vcard-4.0"> <fn><text>Romeo Montague</text></fn> <n> <surname><text>Montague</text></surname> <given><text>Romeo</text></given> <additional/> <prefix> <text>Sir</text> </prefix> <suffix/> </n> <bday><date>--0203</date></bday> <anniversary> <date-time>15000808T1430-0500</date-time> </anniversary> <gender><text>male</text></gender> <org> <parameters><type>home</type></parameters> <text>Juliet</text> </org> <adr> <parameters><type>home</type></parameters> <pobox/> <ext/> <street><text>123 Capulet Way</text></street> <locality><text>Verona</text></locality> <region/> <code/> <country><text>Italy</text></country> </adr> <email> <parameters><type>work</type></parameters> <text>romeo@montague.lit</text> </email> </vcard> </item> </publish> </pubsub> </iq>
Because Juliet has sent presence to Romeo including Entity Capabilities data that encapsulates the "urn:ietf:param:xml:ns:vcard-4.0+notify" feature, Romeo's XMPP server will send a PEP notification to Juliet. The notification can include an XMPP message body for backwards-compatibility with XMPP clients that are not pubsub-capable (see Message Body). This is in accordance with XEP-0060, second 6.1.7.
<message from='romeo@montague.lit' to='juliet@capulet.lit' type='headline'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='urn:ietf:param:xml:ns:vcard-4.0'> <item id='foobar'> <vcard xmlns="urn:ietf:params:xml:ns:vcard-4.0"> <fn><text>Romeo Montague</text></fn> <n> <surname><text>Montague</text></surname> <given><text>Romeo</text></given> <prefix> <text>Sir</text> <prefix/> <suffix/> </n> <bday><date>--0203</date></bday> <anniversary> <date-time>15000808T1430-0500</date-time> </anniversary> <gender><text>male</text></gender> <org> <parameters><type>home</type></parameters> <text>Juliet</text> </org> <adr> <parameters><type>home</type></parameters> <pobox/> <ext/> <street><text>123 Capulet Way</text></street> <locality><text>Verona</text></locality> <region/> <code/> <country><text>Italy</text></country> </adr> <email> <parameters><type>work</type></parameters> <text>romeo@montague.lit</text> </email> </vcard> </item> </items> </event> </message>
Implementations of pubsub that choose to persist items MAY allow entities to request existing items from a node (e.g., an entity may wish to do this after successfully subscribing in order to receive all the items in the publishing history for the node). This is in accordance with XEP-0060, section 6.5. The subscriber may request all items by specifying only the Node ID without restrictions.
<iq type='get' from='juliet@capulet.lit/castle' to='romeo@montague.lit' id='items1'> <pubsub xmlns='http://jabber.org/protocol/pubsub'> <items node='urn:ietf:param:xml:ns:vcard-4.0'/> </pubsub> </iq>
This document does not require interaction with the Internet Assigned Numbers Authority (IANA) [35]
The following open issues are yet to be addressed:
Thanks to Joe Hildebrand, Waqas Hussain, and Matt Miller for their feedback.
Series: XEP
Number: 0292
Publisher: XMPP Standards Foundation
Status:
Experimental
Type:
Standards Track
Version: 0.1
Last Updated: 2011-03-02
Approving Body: XMPP Council
Dependencies: XMPP Core, draft-ietf-vcarddav-vcardrev, draft-ietf-vcarddav-vcardxml
Supersedes: XEP-0054
Superseded By: None
Short Name: NOT_YET_ASSIGNED
Source Control:
HTML
RSS
This document in other formats:
XML
PDF
Email:
samizzi@cisco.com
JabberID:
samizzi@cisco.com
Email:
stpeter@jabber.org
JabberID:
stpeter@jabber.org
URI:
https://stpeter.im/
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The primary venue for discussion of XMPP Extension Protocols is the <standards@xmpp.org> discussion list.
Discussion on other xmpp.org discussion lists might also be appropriate; see <http://xmpp.org/about/discuss.shtml> for a complete list.
Errata can be sent to <editor@xmpp.org>.
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
1. XEP-0054: vcard-temp <http://xmpp.org/extensions/xep-0054.html>.
2. vCard Format Specification <http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev>. Work in progress.
3. vCard XML Representation <http://tools.ietf.org/html/draft-ietf-vcarddav-vcardxml>. Work in progress.
4. XEP-0163: Personal Eventing Protocol <http://xmpp.org/extensions/xep-0163.html>.
5. XEP-0060: Publish-Subscribe <http://xmpp.org/extensions/xep-0060.html>.
6. XEP-0115: Entity Capabilities <http://xmpp.org/extensions/xep-0115.html>.
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/
Initial published version.
(psa)Corrected more errors in the examples.
(psa)Corrected some errors in the examples.
(psa)Third draft.
(psa)Second draft.
(srm)First draft.
(srm)END