From a990316a9a5506fe9b4407274c2a357adc954e1a Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Tue, 1 Nov 2022 17:05:01 +0100 Subject: [PATCH] fixes #159: Ensure that a JID can be affiliated only once Issues pop up when an attempt is ade to affiliate a JID more than once, especially when that JID is also an owner. Affiliating such a JID as something else will remove the ownership affiliation. This can trigger an issue where the room has no owners. This commit introduces a check to verify that the inbound request does not define multiple affiliations for the same JID. It also reworks the way in which affiliations are applied. --- changelog.html | 5 + plugin.xml | 2 +- .../rest/controller/MUCRoomController.java | 161 ++++++++++-------- 3 files changed, 99 insertions(+), 69 deletions(-) diff --git a/changelog.html b/changelog.html index 09ecda0ac..18ebcb8d0 100644 --- a/changelog.html +++ b/changelog.html @@ -44,6 +44,11 @@

REST API Plugin Changelog

+

1.10.1 (tbd)

+ +

1.10.0 September 29, 2022