1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 18:22:24 -05:00

clarified some error handling per existing implementations

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2486 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2008-11-05 17:16:18 +00:00
parent 046c54afc8
commit 0aed208c85

View File

@ -124,8 +124,8 @@
</vCard>
</iq>
]]></example>
<p>If no vCard exists, the server MUST return an &notfound; error.</p>
<example caption="No vCard"><![CDATA[
<p>If no vCard exists, the server MUST return a stanza error (which SHOULD be &notfound;) or an IQ-result containing an empty &lt;vCard/&gt; element.</p>
<example caption="No vCard (item-not-found)"><![CDATA[
<iq id='v1'
to='stpeter@jabber.org/roundabout'
type='error'>
@ -133,6 +133,13 @@
<error type='cancel'>
<item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>
]]></example>
<example caption="No vCard (empty element)"><![CDATA[
<iq id='v1'
to='stpeter@jabber.org/roundabout'
type='result'>
<vCard xmlns='vcard-temp'/>
</iq>
]]></example>
</section2>
@ -195,7 +202,7 @@
type='result'/>
]]></example>
<p>Notice that the previous IQ-set included only one changed element (the &lt;DESC/&gt; 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.</p>
<p>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.</p>
<p>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 &notallowed;.</p>
<example caption="Entity Attempts to Modify Another Entity&apos;s vCard"><![CDATA[
<iq id='v2'
to='stpeter@jabber.org/roundabout'
@ -235,7 +242,7 @@
</vCard>
</iq>
]]></example>
<p>If no vCard exists or the user does not exist, the server MUST return a &unavailable; error.</p>
<p>If no vCard exists or the user does not exist, the server MUST return a stanza error, which SHOULD &unavailable; or &notfound;.</p>
<example caption="No vCard"><![CDATA[
<iq id='v3'
to='stpeter@jabber.org/roundabout'