From 0aed208c85e81806f2553df5a6cac80393738f2a Mon Sep 17 00:00:00 2001 From: Peter Saint-Andre Date: Wed, 5 Nov 2008 17:16:18 +0000 Subject: [PATCH] clarified some error handling per existing implementations git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2486 4b5297f7-1745-476d-ba37-a9c6900126ab --- xep-0054.xml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/xep-0054.xml b/xep-0054.xml index d2b6ecf2..bcd3e924 100644 --- a/xep-0054.xml +++ b/xep-0054.xml @@ -124,8 +124,8 @@ ]]> -

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

- If no vCard exists, the server MUST return a stanza error (which SHOULD be ¬found;) or an IQ-result containing an empty <vCard/> element.

+ @@ -133,6 +133,13 @@ + + ]]> + + ]]> @@ -195,7 +202,7 @@ 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 &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 stanza error, which SHOULD be &forbidden; or ¬allowed;.

]]> -

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

+

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