From aa5fd65ccfdaf761ad222c899eb49f21869c954a Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Thu, 31 Jan 2019 18:16:29 +0100 Subject: [PATCH] Allow eliding of in XEP-0386 --- xep-0386.xml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/xep-0386.xml b/xep-0386.xml index 84974a42..d3c82adc 100644 --- a/xep-0386.xml +++ b/xep-0386.xml @@ -10,7 +10,7 @@ This specification provides a single-request replacement for several activities an XMPP client needs to do at startup. &LEGALNOTICE; 0386 - Deferred + Experimental Standards Track Standards Council @@ -24,6 +24,12 @@ bind2 &ksmithisode; + + 0.3.0 + 2019-01-31 + kis + Begrudingly allow non-unread-tracking servers, mention SASL2. + 0.2.0 2018-02-08 @@ -39,7 +45,7 @@

As XMPP has grown more feature-rich over time, more steps have been introduced that clients are likely to perform at startup, e.g. resource binding, archive synchronisation, enabling Carbons. Some of these introduce race conditions - e.g. if a client synchronises the archive before enabling Carbons, it can miss stanzas sent between these events, or if it enables Carbons before synchronising the archive it can receive duplicate messages. It may also cause duplicate messages by combining archive synchronisation and receipt of offline messages, or by receipt of messages addressed to the full JID between resource binding and archive synchronisation. This document provides a mechanism for atomically performing these operations to avoid these race conditions. It also provides information to a client that is generally useful about the state of the archive.

-

There have been other (not-yet documented) suggestions of further enhancements to the stream startup process, and it is possible that in the future some protocol here may be reframed in terms of such new facilities, but the core premise of the XEP (that these features are needed, and need enabling together) remains. It may be desirable to make the enabling of features extensible, such that the client can request which features are needed, together, but the current approach should serve as a suitable basis for discussion.

+

There have been other suggestions of further enhancements to the stream startup process in XEP-0388 (SASL2), and it is expected that in the future some protocol here will be reframed in terms of these facilities, but the core premise of the XEP (that these features are needed, and need enabling together) remains. It may be desirable to make the enabling of features extensible, such that the client can request which features are needed, together, but the current approach should serve as a suitable basis for discussion.

The returning of unread message state to the client relies on the archive having these data, which is a topic for another specification.

@@ -52,7 +58,7 @@ -

A client does not advertise support for bind 2.0. If a server supports bind 2.0, it MUST advertise this in the stream features with an feature named 'bind' in the namespace 'urn:xmpp:bind2:0'.

+

A client does not advertise support for bind 2.0. If a server supports bind 2.0, it MUST advertise this in the stream features with a feature named 'bind' in the namespace 'urn:xmpp:bind2:0'.

@@ -86,6 +92,7 @@ ]]> +

Servers SHOULD support the <unreads> feature, but if they do not then the <unreads> element MUST be elided, to distinguish between an empty element (no unread messages) and a missing feature.