mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-01 05:32:15 -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:
parent
046c54afc8
commit
0aed208c85
15
xep-0054.xml
15
xep-0054.xml
@ -124,8 +124,8 @@
|
|||||||
</vCard>
|
</vCard>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>If no vCard exists, the server MUST return an ¬found; error.</p>
|
<p>If no vCard exists, the server MUST return a stanza error (which SHOULD be ¬found;) or an IQ-result containing an empty <vCard/> element.</p>
|
||||||
<example caption="No vCard"><![CDATA[
|
<example caption="No vCard (item-not-found)"><![CDATA[
|
||||||
<iq id='v1'
|
<iq id='v1'
|
||||||
to='stpeter@jabber.org/roundabout'
|
to='stpeter@jabber.org/roundabout'
|
||||||
type='error'>
|
type='error'>
|
||||||
@ -133,6 +133,13 @@
|
|||||||
<error type='cancel'>
|
<error type='cancel'>
|
||||||
<item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
|
<item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
|
||||||
</error>
|
</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>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
</section2>
|
</section2>
|
||||||
@ -195,7 +202,7 @@
|
|||||||
type='result'/>
|
type='result'/>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>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.</p>
|
<p>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.</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 ¬allowed;.</p>
|
||||||
<example caption="Entity Attempts to Modify Another Entity's vCard"><![CDATA[
|
<example caption="Entity Attempts to Modify Another Entity's vCard"><![CDATA[
|
||||||
<iq id='v2'
|
<iq id='v2'
|
||||||
to='stpeter@jabber.org/roundabout'
|
to='stpeter@jabber.org/roundabout'
|
||||||
@ -235,7 +242,7 @@
|
|||||||
</vCard>
|
</vCard>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></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 ¬found;.</p>
|
||||||
<example caption="No vCard"><![CDATA[
|
<example caption="No vCard"><![CDATA[
|
||||||
<iq id='v3'
|
<iq id='v3'
|
||||||
to='stpeter@jabber.org/roundabout'
|
to='stpeter@jabber.org/roundabout'
|
||||||
|
Loading…
Reference in New Issue
Block a user