1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-08-13 16:53:48 -04:00

XEP-0060: Specify that empty <item/> are invalid on publish

Note that to trigger a notify-only publish, the <item/> must not
be included at all (as said at the beginning of #publisher-publish-request).
This commit is contained in:
Jonas Schäfer 2020-02-27 17:49:30 +01:00
parent 487dc30f4e
commit 1f6bbef64e

View File

@ -49,6 +49,12 @@
&pgmillard;
&stpeter;
&ralphm;
<revision>
<version>1.18.0</version>
<date>2020-02-27</date>
<initials>jsc</initials>
<remark><p>Properly specifiy that an empty &lt;item/&gt; is invalid on publish.</p></remark>
</revision>
<revision>
<version>1.17.0</version>
<date>2019-10-06</date>
@ -2975,7 +2981,7 @@ And by opposing end them?
]]></example>
</section4>
<section4 topic='Bad Payload' anchor='publisher-publish-error-badpayload'>
<p>If the &ITEM; element contains more than one payload element or the namespace of the root payload element does not match the configured namespace for the node, the service MUST bounce the request with a &badrequest; error, which SHOULD also include a pubsub-specific error condition of &lt;invalid-payload/&gt;.</p>
<p>If the &ITEM; element does not contain exactly one payload element or the namespace of the root payload element does not match the configured namespace for the node, the service MUST bounce the request with a &badrequest; error, which SHOULD also include a pubsub-specific error condition of &lt;invalid-payload/&gt;.</p>
<example caption='Entity attempts to publish item with multiple payload elements or namespace does not match'><![CDATA[
<iq type='error'
from='pubsub.shakespeare.lit'