No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0360.xml 4.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>Nonzas (are not Stanzas)</title>
  10. <abstract>This specification defines the term "Nonza", describing every top level stream element that is not a Stanza.</abstract>
  11. &LEGALNOTICE;
  12. <number>0360</number>
  13. <status>Deferred</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <approver>Council</approver>
  17. <dependencies>
  18. <spec>XMPP Core</spec>
  19. </dependencies>
  20. <supersedes/>
  21. <supersededby/>
  22. <shortname>NOT_YET_ASSIGNED</shortname>
  23. &flow;
  24. <revision>
  25. <version>0.2</version>
  26. <date>2017-09-11</date>
  27. <initials>XEP Editor (jwi)</initials>
  28. <remark>Defer due to lack of activity.</remark>
  29. </revision>
  30. <revision>
  31. <version>0.1</version>
  32. <date>2015-07-14</date>
  33. <initials>XEP Editor (mam)</initials>
  34. <remark><p>Initial published version approved by the XMPP Council.</p></remark>
  35. </revision>
  36. <revision>
  37. <version>0.0.1</version>
  38. <date>2015-06-01</date>
  39. <initials>fs</initials>
  40. <remark><p>First draft.</p></remark>
  41. </revision>
  42. </header>
  43. <section1 topic='Introduction' anchor='intro'>
  44. <p>The usage of non-Stanza top-level XMPP stream elements is steadily increasing in the last years. Starting with &xep0198;, one of the earliest XEPs which specified and used additional non-Stanza elements, the XMPP community sees an increasing usage of those elements in submitted specifications. Unlike Stanzas which are specified in &rfc6120; § 4.1 "Stream Fundamentals" and § 8. "XML Stanzas", there is no term and definition provided for them.</p>
  45. <p>This leads to the unfortunate situation where some submitted XEPs erroneous refer to non-Stanza top level stream elements as 'Stanzas'. Thus causing confusion, and opening the door to possible interoperability breakage and security vulnerabilities.</p>
  46. <p>This XEP tries to fix this by providing a term, a definition and declaring some rules for those XMPP stream elements.</p>
  47. </section1>
  48. <section1 topic='Nonza Definition' anchor='nonza'>
  49. <p><strong>Nonza:</strong> A Nonza is every XML element found at the XMPP stream's top level which is not a Stanza. The top level of an XMPP stream is the child XML level beneath the last &lt;stream&gt; opening tag as defined in RFC 6120 § 4.2. "Opening a Stream", i.e. at depth=1 of the stream.</p>
  50. <p><strong>Informal definition:</strong> A XMPP stream element is a Nonza, if its element name is not 'message', 'iq' or 'presence'.</p>
  51. <p>The term 'Nonza' originates from the beginning and ending letters of its definition and thus makes it easy to recall that definition: <strong>No</strong>t a Sta<strong>nza</strong>.</p>
  52. </section1>
  53. <section1 topic='Nonza Examples' anchor='nonza-examples'>
  54. <section2 topic='Nonzas used before resource binding' anchor='nonza-examples-before-binding'>
  55. <example caption='The Stream Compression (XEP-0138) &lt;compress/&gt; Nonza'><![CDATA[
  56. <compress xmlns='http://jabber.org/protocol/compress'>
  57. <method>zlib</method>
  58. </compress>]]></example>
  59. </section2>
  60. <section2 topic='Nonzas used after resource binding' anchor='nonza-examples-after-binding'>
  61. <example caption='The Stream Management (XEP-0198) &lt;enable/&gt; Nonza'><![CDATA[
  62. <enable xmlns='urn:xmpp:sm:3'/>]]></example>
  63. <example caption='The Client State Indication (XEP-0352) &lt;active/&gt; Nonza'><![CDATA[
  64. <active xmlns='urn:xmpp:csi:0'/>]]></example>
  65. </section2>
  66. </section1>
  67. <section1 topic='Use Cases' anchor='usecases'>
  68. <p>Nonzas are commonly used when it is not necessary to route the exchanged information behind the endpoints of an XMPP stream. For example, one use case is to control the XMPP stream like it is done in <cite>XEP-0198: Stream Management</cite>.</p>
  69. <p>Nonzas sent before resource binding, as defined in RFC 6120 § 7., usually follow a request-response pattern. But after the client successfully bound a resource, they are used in a more "asynchronous" fashion, where a 'request' Nonza does not, or at least not immediately, trigger a 'result' Nonza sent back.</p>
  70. </section1>
  71. <section1 topic='Business Rules' anchor='rules'>
  72. <ol>
  73. <li>Nonzas MUST NOT be routed, i.e. they are only exchanged between the two endpoints of an XMPP stream.</li>
  74. <li>Nonzas SHOULD NOT have a &apos;from&apos; or &apos;to&apos; attribute.</li>
  75. </ol>
  76. <p>
  77. Note that an exception from 2. are the the widely used &lt;db/&gt; Nonzas defined in &xep0220;.
  78. </p>
  79. </section1>
  80. <section1 topic='Security Considerations' anchor='security'>
  81. <p>As noted, Nonzas MUST NOT get routed, because this could introduce the ability for third parties to spoof them.</p>
  82. </section1>
  83. <section1 topic='IANA Considerations' anchor='iana'>
  84. <p>This document requires no interaction with &IANA;.</p>
  85. </section1>
  86. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  87. <p>This document requires no interaction with &REGISTRAR;.</p>
  88. </section1>
  89. </xep>