diff --git a/xep-0359.xml b/xep-0359.xml index 2ae633fe..bcee848c 100644 --- a/xep-0359.xml +++ b/xep-0359.xml @@ -19,13 +19,25 @@ - NOT_YET_ASSIGNED (suggested: sid) + stanza-id Florian Schmaus flo@geekplace.eu flo@geekplace.eu + + 0.2 + 2015-09-18 + fs + +
    +
  • Refactored client-id from attribute to element.
  • +
  • Set short name to 'stanza-id'.
  • +
  • Clarified that SID elements must not have additional content.
  • +
+
+
0.1 2015-07-14 @@ -67,17 +79,17 @@

- Some use cases require the client to generate the stanza ID. In this case, the client MUST use 'client-id' as attribute name for the ID. + Some use cases require the client to generate the stanza ID. In this case, the client MUST use the 'client-id' element.

Typical body text - + ]]>

- The server MAY add an 'id' attribute to the stanza-id element. In that case, it MUST preserve the content of the 'client-id' attribute. + The server or component MAY add a stanza-id element. In that case, it MUST preserve the content of the 'client-id' element.

Typical body text + by='room@muc.example.org'/> + ]]> -

- Otherwise, if the server does not override the ID, it MAY omit the 'client-id' attribute. -

    -
  1. XMPP entities, which are routing stanzas, MUST NOT strip stanza-id elements from message stanzas.
  2. -
  3. The values of the 'id' (and 'client-id') attribute SHOULD be unpredictable.
  4. -
  5. Stanza ID generating entities, which encounter a <stanza-id/> element where 'id' (and 'client-id') is already set and where the 'by' attribute matches their own JID, MUST ignore the existing value of 'id' and override it.
  6. +
  7. XMPP entities, which are routing stanzas, MUST NOT strip any elements qualified by the 'urn:xmpp:sid:0' namespace from message stanzas. They SHOULD however ensure that those elements contain only the attributes defined herein, and take approribate countermeasures if this is not the case (e.g. removing those attributes).
  8. +
  9. The values of the 'id' attribute SHOULD be unpredictable.
  10. +
  11. Stanza ID generating entities, which encounter a <stanza-id/> element where 'id' is already set and where the 'by' attribute matches their own JID, MUST ignore the existing value of 'id' and override it.
  12. Stanzas MUST posses, in the direct child level of the stanza, at most one 'stanza-id' extension element with the same JID as value of the 'by' attribute.
  13. -
  14. Stanza ID extension elements which have a 'id' attribute MUST also have the 'by' attribute set.
  15. -
  16. Stanza ID extension elements MUST either posses a 'id' attribute, a 'client-id' attribute or both.
  17. +
  18. Every <stanza-id> extension element MUST have the 'id' attribute and the 'by' attribute set.
  19. +
  20. Every <stanza-id> and <client-id> extension element MUST always posses an 'id' attribute and MUST NOT have any child elements or text content.
  21. The value of the 'by' attribute MUST be a normalized JID as defined in &rfc6122;
-

The value of the 'id' attribute should not provide any further information besides the opaque ID itself. Entities observing the value MUST NOT be able to infer any information from it, e.g. the size of the message archive. The value of 'id' and 'client-id' MUST be considered as non-secret values.

+

The value of the 'id' attribute should not provide any further information besides the opaque ID itself. Entities observing the value MUST NOT be able to infer any information from it, e.g. the size of the message archive. The value of 'id' MUST be considered as non-secret values.

This document requires no interaction with &IANA;.