openfire-restAPI-plugin icon indicating copy to clipboard operation
openfire-restAPI-plugin copied to clipboard

Could not apply modification to list of member

Open MrBytess opened this issue 1 year ago • 2 comments

MUC sends an error message to join a member

http://192.168.1.55:9090/plugins/restapi/v1/chatrooms/30046/members/1003

Both users and chat rooms exist

Error Message:

{ "resource": "30046", "message": "Could not apply modification to list of member", "exception": "NotAllowedException" }

How to call correctly? What configuration is still needed? 微信图片_20230918174257

MrBytess avatar Sep 18 '23 09:09 MrBytess

You're attempting to add a user whose local username is 1003 to a MUC named 30046, correct?

Which version of Openfire and the plugin are you using?

Fishbowler avatar Sep 18 '23 10:09 Fishbowler

Tried this out. This works for me.

Checked the code, this is returned under specific circumstances.

  • Room is configured with "Only login with registered nickname"
  • The user you're adding to the members is the only Owner (because at which point, you'd have no Owners)

Fishbowler avatar Sep 18 '23 12:09 Fishbowler

Closing this issue as it's been inactive, while Dan found the problem to be non-reproducible.

guusdk avatar Jun 25 '24 08:06 guusdk