mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 18:22:24 -05:00
Merge branch 'xep_0060_publish_options' of https://github.com/siacs/xeps into feature/xep-0060
This commit is contained in:
commit
b17bad8b0a
14
xep-0060.xml
14
xep-0060.xml
@ -49,6 +49,12 @@
|
|||||||
&stpeter;
|
&stpeter;
|
||||||
&ralphm;
|
&ralphm;
|
||||||
|
|
||||||
|
<revision>
|
||||||
|
<version>1.13.6</version>
|
||||||
|
<date>2017-06-22</date>
|
||||||
|
<initials>dg</initials>
|
||||||
|
<remark><p>Clarify behaviour of publish-options. Fields must be registered</p></remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>1.13.5</version>
|
<version>1.13.5</version>
|
||||||
<date>2016-12-21</date>
|
<date>2016-12-21</date>
|
||||||
@ -2940,11 +2946,11 @@ And by opposing end them?
|
|||||||
</pubsub>
|
</pubsub>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>The <publish-options/> element SHOULD contain a data form (see <cite>XEP-0004</cite>), whose FORM_TYPE SHOULD be "http://jabber.org/protocol/pubsub#publish-options" (see <cite>XEP-0068</cite>).</p>
|
<p>The <publish-options/> element MUST contain a data form (see <cite>XEP-0004</cite>), whose FORM_TYPE MUST be "http://jabber.org/protocol/pubsub#publish-options" (see <cite>XEP-0068</cite>).</p>
|
||||||
<p>How the fields are to be handled is up to the the pubsub service, which in the language of XEP-0004 functions as a form-processing entity.</p>
|
<p>Fields and their behaviour MUST be registered with the XMPP Registrar. Each field MUST specify whether it defines METADATA to be attached to the item, a per-item OVERRIDE of the node configuration, or a PRECONDITION to be checked against the node configuration. A pubsub service advertising support for publishing options MUST reject publications with unknown fields.</p>
|
||||||
<p>For example, the service may treat the field as a precondition, in which case the service should proceed as follows:</p>
|
<p>A field defined as a precondition MUST be processed as follows:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>If the node exists and the precondition is not met, then the publish shall fail with a &conflict; error condition and a pubsub-specific condition of <precondition-not-met/>.</li>
|
<li>If the node exists and the precondition is not met, then the publish MUST fail with a &conflict; error condition and a pubsub-specific condition of <precondition-not-met/>.</li>
|
||||||
<li>If the node exists and the precondition is met, then the publish succeeds.</li>
|
<li>If the node exists and the precondition is met, then the publish succeeds.</li>
|
||||||
<li>If the node does not exist and the service supports the "auto-create" feature, then the service shall auto-create the node with default configuration in all respects except those specified in the preconditions, and the publish succeeds.</li>
|
<li>If the node does not exist and the service supports the "auto-create" feature, then the service shall auto-create the node with default configuration in all respects except those specified in the preconditions, and the publish succeeds.</li>
|
||||||
<li>If the node does not exist and the service does not support the "auto-create" feature, then the publish shall fail.</li>
|
<li>If the node does not exist and the service does not support the "auto-create" feature, then the publish shall fail.</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user