From 5378643f343533fea2772d69229b41a8cb5bb80f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 27 Jul 2019 20:43:11 +0200 Subject: [PATCH 1/9] XEP-0412: Fix typo in superseded XEP. --- xep-0412.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xep-0412.xml b/xep-0412.xml index bbd12e06..7484cb15 100644 --- a/xep-0412.xml +++ b/xep-0412.xml @@ -49,7 +49,7 @@ XEP-0368 - XEP-0378 + XEP-0387 CS2019 From 04660ff728d15c57ba670ba802e953221e14dcbe Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 27 Jul 2019 20:43:36 +0200 Subject: [PATCH 2/9] XEP-0387: This XEP has been superseded by XEP-0412. --- xep-0387.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xep-0387.xml b/xep-0387.xml index 2428ab11..0db45461 100644 --- a/xep-0387.xml +++ b/xep-0387.xml @@ -18,7 +18,7 @@ &LEGALNOTICE; 0387 - Draft + Obsolete 2017-12-21 2017-11-15 Standards Track @@ -52,7 +52,9 @@ XEP-0375 - + + XEP-0412 + CS2018 &sam; &jonaswielicki; From 8a80ba8a7f3d3a3eddaa8e6f062e74115042145f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Wed, 31 Jul 2019 12:55:09 +0200 Subject: [PATCH 3/9] Fix spelling mistakes and typos in XEP-0413 --- xep-0413.xml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/xep-0413.xml b/xep-0413.xml index 07c8c5fd..7b98df22 100644 --- a/xep-0413.xml +++ b/xep-0413.xml @@ -43,28 +43,28 @@ -

&xep0060; §6.5.7 allows to retrieve the "most recent items" and &xep0313; state in §3.1 that archives are ordered in "chrnological order". While this order is straighforward in general use cases, it is sometimes desirable to use a different order, for instance while using &xep0277;: a spell mistake correction should not bring an old blog post to the top of retrieved items.

+

&xep0060; §6.5.7 allows to retrieve the "most recent items" and &xep0313; state in §3.1 that archives are ordered in "chronological order". While this order is straighforward in general use cases, it is sometimes desirable to use a different order, for instance while using &xep0277;: a spelling mistake correction should not bring an old blog post to the top of retrieved items.

This specification allows to explicitly change business logic to retrieve the items in a different order, in a similar way as the "ORDER BY" clause in SQL.

  • an entity should be able to retrieve items by date of creation or by date of last modification (see below for definitions)
  • the specification should be extensible to allow new ordering
  • -
  • in case of conflict, a 2nd, 3rd, etc. level of ordering should be possible
  • +
  • in case of conflicts, a 2nd, 3rd, etc. level of ordering should be possible

In XEP-0060, there is no such thing as "updated item". This XEP changes the business logic as follow:

    -
  • Date of creation — date when the item has been published ONLY if the item has a new id (i.e. an id which was not already present in the node at the time of publication). If an item re-use an existing id, it overwrites the original item and the date of creation stay the date of creation of the original item
  • +
  • Date of creation — date when the item has been published ONLY if the item has a new id (i.e. an id which was not already present in the node at the time of publication). If an item reuses an existing id, it overwrites the original item and the date of creation stays the date of creation of the original item.
  • Date of modification — date when the item has been overwritten by a new item of the same id. If the item has never been overwritten, it is equal to the date of creation defined above.
-

Juliet wants to retrieve plays of his favorite writer, William Shakespeare. She wants to retrieve the 3 most recent ones by date of creation.

-

To do so, her client do a regular Pubsub request, but add the <order> element as a children of the <pubsub> element with a namespace of "urn:xmpp:order-by:0" and with a 'by' attribute equal to "creation".

+

Juliet wants to retrieve plays of her favorite writer, William Shakespeare. She wants to retrieve the 3 most recent ones by date of creation.

+

To do so, her client do a regular Pubsub request, but adds the <order> element as a children of the <pubsub> element with the "urn:xmpp:order-by:0" namespace and with a 'by' attribute equal to "creation".

]]> -

Pubsub service then returns the 3 plays created the most recently, first one being the most recent

+

The Pubsub service then returns the 3 most recently created plays, first one being the most recent.

-

Juliet realize that there is a spelling mistake, it's "Winter's Tale" and not "Wintter's Tale". She fixes it by overwritting the item:

+

Juliet realizes that there is a spelling mistake, it's "Winter's Tale" and not "Wintter's Tale". She fixes it by overwritting the item:

]]> -

To check that everything is alright, she request again the last 3 items, but this time by date of modification. To do so, he client proceed the same way as for date of creation, except that it uses the value "modification" for the 'by' attribute

+

To check that everything is alright, she requests again the last 3 items, but this time by date of modification. To do so, the client proceeds the same way as for date of creation, except that it uses the value "modification" for the 'by' attribute.

]]> -

Pubsub service returns again the 3 plays but the "Winter Tales" item has been overwritten recently, while the 2 others have never been overwritten, so it returns the items in the following order, with most recently modified item on top:

+

The Pubsub service returns again the 3 plays but the "Winter Tales" item has been overwritten recently, while the 2 others have never been overwritten, so it returns the items in the following order, with the most recently modified item on top:

]]> -

This way, filters can be used with specific ordering

+

This way, filters can be used with a specific ordering.

-

The ordering can be reversed by using the mechanisms already provided by &xep0059;

+

The ordering can be reversed by using the mechanisms already provided by &xep0059;.

-

This specification can be extended by further XEPs, proposing other kind of ordering in the 'by' attribute (e.g. ordering by filename for a file sharing service). But this is beyond the scope of this XEPs, and a client should not assume that other ordering than "creation" and "modification" are available without negociation.

-

In a similar way, the semantic described here could be re-used in other use cases as for Pubsub or MAM, but this would need to be detailed in a separate specification.

+

This specification can be extended by further XEPs, proposing other kind of ordering in the 'by' attribute (e.g. ordering by filename for a file sharing service). But this is beyond the scope of this XEP, and a client should not assume that other ordering than "creation" and "modification" are available without negociation.

+

In a similar way, the semantic described here could be reused in other use cases as for Pubsub or MAM, but this would need to be detailed in a separate specification.

-

If a server supports the "order by" protocol, it MUST report that fact by including a service discovery feature of "urn:xmpp:order-by:0" &NSNOTE; in response to a &xep0030; information request:

+

If a server supports the "order by" protocol, it MUST advertize it including the "urn:xmpp:order-by:0" discovery feature &NSNOTE; in response to a &xep0030; information request:

- ... + … - ... + … ]]>
-

Several ordering elements may be used, this allow to solve next levels of ordering in case of conflicts. In this case, the first ordering (i.e. the top most <order> element) is the main one, the the second <order> element is used in case of conflict, then the next one if a new conflict happen and so on.

-

In case of conflict, if no new <order> element is specified, the item order is not guarented and is up to the implementation

+

Several ordering elements may be used, this allows to solve next levels of ordering in case of conflicts. In this case, the first ordering (i.e. the top most <order> element) is the main one, the second <order> element is used in case of conflicts, then the next one if a new conflict happens and so on.

+

In case of conflicts, if no new <order> element is specified, the item order is not guaranted and is up to the implementation.

-

For implementations based on SQL databases, the "ORDER BY" clause can be used to easily implement this specification. Other kind of databases should have similar mechanisms

+

For implementations based on SQL databases, the "ORDER BY" clause can be used to easily implement this specification. Other kind of databases should have similar mechanisms.

From 7bc015cfea476e4f0b3c20cd64a32d852da0b91a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Sat, 3 Aug 2019 00:07:44 +0200 Subject: [PATCH 4/9] XEP-0060: Add pubsub#public in Publish-Subscribe features --- xep-0060.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/xep-0060.xml b/xep-0060.xml index 5dae4088..9e879af3 100644 --- a/xep-0060.xml +++ b/xep-0060.xml @@ -921,6 +921,7 @@ And by opposing end them?

If a service implements a hierarchy of nodes (by means of Collection Nodes), it MUST also enable entities to discover the nodes in that hierarchy by means of the Service Discovery protocol, subject to the recommendations in XEP-0030 regarding large result sets (for which &xep0055; or some other protocol SHOULD be used). The following examples show the use of service discovery in discovering the nodes available at a hierarchical pubsub service.

Note: Node hierarchies and collection nodes are OPTIONAL. For details, refer to the NodeID Semantics and Collection Nodes sections of this document.

+

The service SHOULD return a full list of the public nodes it hosts (i.e., not return any nodes that don't contain the "http://jabber.org/protocol/pubsub#public" feature or that have the feature set to false).

In the first example, an entity sends a service discovery items ("disco#items") request to the root node (i.e., the service itself), which is a Collection Node:

bard@shakespeare.lit + + 1 + open @@ -5230,6 +5234,12 @@ And by opposing end them? RECOMMENDED Auto-Subscribe + + public + Public searching for a node is supported. + OPTIONAL + Discover Nodes + publish Publishing items is supported. @@ -6116,6 +6126,11 @@ xmpp:pubsub.shakespeare.lit?pubsub;action=retrieve;node=princely_musings;item=ae Implicit presence-based subscriptions are supported. XEP-0060 + + http://jabber.org/protocol/pubsub#public + Public searching for a node is supported. + XEP-0060 + http://jabber.org/protocol/pubsub#publish Publishing items is supported. @@ -6938,6 +6953,7 @@ xmpp:pubsub.shakespeare.lit?pubsub;action=retrieve;node=princely_musings + From f3273b122dcbb81377813c586a68d6986325659b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Mon, 19 Aug 2019 18:08:19 +0200 Subject: [PATCH 5/9] XEP-0414: Drop dangling reference --- xep-0414.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/xep-0414.xml b/xep-0414.xml index dd0c7085..35e8f5dd 100644 --- a/xep-0414.xml +++ b/xep-0414.xml @@ -82,7 +82,6 @@

The SHA-1 algorithm was developed by the U.S. National Security Agency and first published in 1995 to fix problems with SHA-0. The SHA-1 algorithm is currently the most widely-deployed hash function. As described in &rfc4270; in 2005, attacks have been found against the collision resistance property of SHA-1. &rfc6194; notes that as of 2011 no published results indicate improvement upon those attacks. In addition, RFC 6194 notes that "[t]here are no known pre-image or second pre-image attacks that are specific to the full round SHA-1 algorithm". Furthermore, there is no indication that attacks on SHA-1 can be extended to HMAC-SHA-1. Nevertheless, the U.S. National Institute of Standards and Technology (NIST) has recommended that SHA-1 not be used for generating digital signatures after December 31, 2010.

In fall 2015 the SHA-1 collision cost has been estimated between 75K$ to 120K$ The SHAppening: freestart collisions for SHA-1 <https://sites.google.com/site/itstheshappening/>..

-

The SHA-1 algorithm is used in a number of XMPP protocols. See Analysis of Existing XMPP Extensions for details.

The SHA-2 family of algorithms (SHA-224, SHA-256, SHA-384, and SHA-512) was developed by the U.S. National Security Agency and first published in 2001. Because SHA-2 is somewhat similar to SHA-1, it is thought that the security flaws with SHA-1 described above could be extended to SHA-2 (although no such attacks have yet been found on the full-round SHA-2 algorithms).

From 81ab876a68261b2092a88979f1302f5b0b3464bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Mon, 19 Aug 2019 18:09:52 +0200 Subject: [PATCH 6/9] XEP-0414: Add revision block --- xep-0414.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xep-0414.xml b/xep-0414.xml index 35e8f5dd..cb47a0b5 100644 --- a/xep-0414.xml +++ b/xep-0414.xml @@ -20,6 +20,12 @@ hashrecs &jonaswielicki; + + 0.3.0 + 2019-08-19 + jsc + Remove dangling reference to analysis of hash function use in existing XMPP extensions. It can still be found in XEP-0300, version 0.5 (<https://xmpp.org/extensions/attic/xep-0300-0.5.html#existing>). Thanks to Dennis Baurichter for pointing this out. + 0.2.0 2019-04-28 From 800f35516cfe2a6ef37b95e42c24abe4ee4b3129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 20 Aug 2019 18:10:34 +0200 Subject: [PATCH 7/9] XEP-0413: add revision block --- xep-0413.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xep-0413.xml b/xep-0413.xml index 7b98df22..854051e9 100644 --- a/xep-0413.xml +++ b/xep-0413.xml @@ -28,6 +28,12 @@ goffi@goffi.org goffi@jabber.fr + + 0.1.1 + 2019-08-20 + edhelas +

Editorial language fixes

+
0.1.0 2019-02-04 From 33648bbcaa4fd1c29f9d885cefe5e7a95a7bd7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 20 Aug 2019 18:11:15 +0200 Subject: [PATCH 8/9] XEP-0364: fix another typo --- xep-0364.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xep-0364.xml b/xep-0364.xml index ad3a4486..6054bf55 100644 --- a/xep-0364.xml +++ b/xep-0364.xml @@ -311,7 +311,7 @@ xmpp:feste@allfools.lit?otr-fingerprint=AEA4D503298797D4A4FC823BC1D24524B4C54338 article - Daniel Gultsch (Retreived on 2015-07-29). "Observations on Imlementing + Daniel Gultsch (Retreived on 2015-07-29). "Observations on Implementing XMPP" < https://github.com/siacs/Conversations/blob/development/docs/observations.md From 96e31c90ff302c83d7f223141caba9c84ef8bd43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 20 Aug 2019 18:12:03 +0200 Subject: [PATCH 9/9] XEP-0364: add revision block --- xep-0364.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xep-0364.xml b/xep-0364.xml index 6054bf55..bcfacdb8 100644 --- a/xep-0364.xml +++ b/xep-0364.xml @@ -25,6 +25,12 @@ NOT_YET_ASSIGNED &sam; + + 0.3.2 + 2019-08-20 + jublah + Fix broken link to Daniels article + 0.3.1 2018-11-03