diff --git a/xep-0054.xml b/xep-0054.xml index f4d73209..ab346901 100644 --- a/xep-0054.xml +++ b/xep-0054.xml @@ -20,43 +20,49 @@ vcard-temp &stpeter; + + 1.2pre1 + 2008-06-12 + psa +

More fully specified error cases; added section on determining support.

+
1.1 2003-03-26 psa - Clarified certain historical inaccuracies and added links to archived versions of Frank Dawson's Internet-Drafts. +

Clarified certain historical inaccuracies and added links to archived versions of Frank Dawson's Internet-Drafts.

1.0 2003-01-09 psa - Updated status to Active per vote of the Jabber Council. +

Updated status to Active per vote of the Jabber Council.

0.2 2002-11-06 psa - Many small fixes; added implementation notes. +

Many small fixes; added implementation notes.

0.1 2002-10-31 psa - Initial version. +

Initial version.

- +

This specification documents the vCard-XML format currently in use within the Jabber community. A future specification will recommend a standards-track protocol to supersede this informational document.

The basic functionality is for a user to store and retrieve an XML representation of his or her vCard using the data storage capabilities native to all existing Jabber server implementations. This is done by by sending an <iq/> of type "set" (storage) or "get" (retrieval) to one's Jabber server containing a <vCard/> child scoped by the 'vcard-temp' namespace, with the <vCard/> element containing the actual vCard-XML elements as defined by the vCard-XML DTD. Other users may then view one's vCard information.

- +

vCards are an existing and widely-used standard for personal user information storage, somewhat like an electronic business card. The vCard format is defined in &rfc2426;.

-

In 1998 and 1999, Frank Dawson submitted four revisions of an Internet-Draft proposing to represent the standard vCard format in XML. When the Jabber project was originally looking for a method to store personal user information, the most recent revision was draft-dawson-vcard-xml-dtd-01 This document is archived at <http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-01.txt>.. He also submitted a -02 revision on November 15, 1998 This document is archived at <http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-02.txt>. and a -03 revision on June 22, 1999 This document is archived at <http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-03.txt>..

-

Unfortunately, Dawson's proposal did not move forward within the IETF's standards process. For reasons now lost in the mists of time, the Jabber project continued to use the DTD from draft-dawson-vcard-xml-dtd-01, making two small modifications to adapt it for use within Jabber (adding the JABBERID and DESC elements) but also specifying element names in all caps rather than lowercase as defined in draft-dawson-vcard-xml-dtd-01. In addition, the Jabber community followed the usage (but not DTD) in that draft regarding version information, including it as an attribute of the vCard element rather than as a child element. This format was implemented within Jabber under the 'vcard-temp' namespace.

+

In 1998 and 1999, Frank Dawson submitted four revisions of an Internet-Draft proposing to represent the standard vCard format in XML. When the jabberd open-source project was originally looking for a method to store personal user information, the most recent revision consulted by the jabberd developers was draft-dawson-vcard-xml-dtd-01 This document is archived at <http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-01.txt>.. He also submitted a -02 revision on November 15, 1998 This document is archived at <http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-02.txt>. and a -03 revision on June 22, 1999 This document is archived at <http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-03.txt>..

+

Unfortunately, Dawson's proposal did not move forward within the IETF's standards process. For reasons now lost in the mists of time, the Jabber project continued to use the DTD from draft-dawson-vcard-xml-dtd-01, making two small modifications to adapt it for use within the Jabber community (adding the JABBERID and DESC elements) but also specifying element names in all caps rather than lowercase as defined in draft-dawson-vcard-xml-dtd-01. In addition, the Jabber community followed the usage (but not DTD) in that draft regarding version information, including it as an attribute of the vCard element rather than as a child element. This format was implemented within the Jabber community under the 'vcard-temp' namespace.

- + -

A user may retrieve his or her own vCard by sending XML of the following form to his or her own JID (the 'to' attibute MUST NOT be included):

+

A user retrieves his or her own vCard by sending an IQ-get with no 'to' address and containing a <vCard/> child element qualified by the 'vcard-temp' namespace.

]]> -

The server should then return the vCard to the user:

+

If a vCard exists for the user, the server MUST return in an IQ-result:

+ + ]]> +

If no vCard exists, the server MUST return an ¬found; error.

+ + + + + ]]>
@@ -178,7 +195,16 @@ type='result'/> ]]>

Notice that the previous IQ-set included only one changed element (the <DESC/> element). 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.

-

If a user attempts to perform an IQ set on another user's vCard (i.e., by setting a 'to' address to a JID other than the sending user's bare JID), the server MUST return a 403 "Forbidden" error.

+

If a user attempts to perform an IQ set on another user's vCard (i.e., by setting a 'to' address to a JID other than the sending user's bare JID), the server MUST return a &forbidden; error.

+ + + + + + ]]>

A user may view another user's vCard by sending an IQ of type "get" to the other user's bare JID.

@@ -207,19 +233,55 @@ jeremie@jabber.org jer@jabber.org + + ]]> +

If no vCard exists or the user does not exist, the server MUST return a &unavailable; error.

+ + + + + ]]>

Note: The use of vCards is not limited to accounts associated with human users. For example, an XMPP server could itself have a vCard that defines the server's hosting organization, physical location, and relevant contact addresses.

- + +

If an entity supports the vcard-temp protocol, it MUST report that by including a service discovery feature of "vcard-temp" &NSNOTE; in response to a &xep0030; information request:

+ + + + ]]> + + + ... + + ... + + + ]]> +

This information can also be encapsulated via &xep0115; for entities who share presence.

+
+ +

The vCard information published to one's Jabber server is world-readable; therefore, users should exercise due caution when determining what information to include (e.g., street addresses, personal telephone numbers, or email addresses).

- +

This document requires no interaction with &IANA;.

- +

The ®ISTRAR; includes the 'vcard-temp' namespace in its registry of official namespaces (see &NAMESPACES;).

@@ -244,7 +306,7 @@ xmpp:romeo@montague.net?vcard ]]>
- +

Note the following:

  • The correct capitalization of the wrapper element is <vCard/> (and XML element names are case-sensitive).
  • @@ -256,7 +318,7 @@ xmpp:romeo@montague.net?vcard
  • Some Jabber implementations add a 'version' attribute to the <vCard/> element, with the value set at "2.0" or "3.0". The DTD is incorrect, and the examples in draft-dawson-vcard-xml-dtd-01 clearly show that version information is to be included by means of a 'version' attribute, not the <VERSION/> element as defined in the DTD. However, to conform to draft-dawson-vcard-xml-dtd-01, the value should be "3.0", not "2.0".
- +

The following DTD is a slightly modified version of that contained in draft-dawson-vcard-xml-dtd-01. The only modifications were to add the JABBERID and DESC elements.