From 1f6bbef64ecfcbd59c0183d2be86ab54ef4f48f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Thu, 27 Feb 2020 17:49:30 +0100 Subject: [PATCH] XEP-0060: Specify that empty are invalid on publish Note that to trigger a notify-only publish, the must not be included at all (as said at the beginning of #publisher-publish-request). --- xep-0060.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xep-0060.xml b/xep-0060.xml index 6251ae32..d7217566 100644 --- a/xep-0060.xml +++ b/xep-0060.xml @@ -49,6 +49,12 @@ &pgmillard; &stpeter; &ralphm; + + 1.18.0 + 2020-02-27 + jsc +

Properly specifiy that an empty <item/> is invalid on publish.

+
1.17.0 2019-10-06 @@ -2975,7 +2981,7 @@ And by opposing end them? ]]> -

If the &ITEM; element contains more than one payload element or the namespace of the root payload element does not match the configured namespace for the node, the service MUST bounce the request with a &badrequest; error, which SHOULD also include a pubsub-specific error condition of <invalid-payload/>.

+

If the &ITEM; element does not contain exactly one payload element or the namespace of the root payload element does not match the configured namespace for the node, the service MUST bounce the request with a &badrequest; error, which SHOULD also include a pubsub-specific error condition of <invalid-payload/>.