MUC Service Plugin add/delete user role problem

I was using Chrom’s Advanced Rest Client to test the plugin,and I get HTTP/1.1 302 Found, and redirect me to the login.jsp page when I call these two:

  1. POST /mucservice/chatrooms/{roomName}/{roles}/{jid}

  2. DELETE /mucservice/chatrooms/{roomName}/{roles}/{jid}

and it redirect to login.jsp page with parameters like:


To: with status: 302 HTTP/1.1 302 Found

Redirection information has not been cached.


Content-Length: 0

Anyone out there got the same problem?

Thats indeed a problem. I will take a look and will fix the problem.

I am having the same exact issue. I continually get the 302 (Found) response, and the location listed in the headers always points to login.jsp.

Is there another way to accomplish this same purpose programmatically?

I found that issue, the problem is the @ in the JID and authfilter from openfire. The @ is not allow in the URL.

I could change that to username instead of JID, but that would be restrict external user (with other domain name).

Additionally you can also set roles by update the whole MUC channel.

Change from JID to username would work for me as I am only working on a single domain. :slight_smile:

And you mentioned by updating the whole MUC channel you mean using other tools instead of your plugin right?

thanks again!

No, you can also change many roles at once, not only add one role, or delete one role. So you set roles and room config.

Look here: put-mucservicechatroomsroomname

This is a much more powerful option anyway, so I’ve abandoned the previous approach and used this one. I do, however, like the promised ease of simply adding the role with the other method. Hopefully, it will be given some attention at a future date.

Thanks for your input!


the REST API Plugin was released, which also include the MUC Service Plugin features.

The structure is the same, only the base URL was changed. And your mentioned problems is also fixed.

So you can now add only one role or delete one role, by username and not by JID.

If you use the Openfire 3.10 beta. You can also use JID.

Look here: REST API Plugin Readme

Thanks for your time!

Will give it a try soon!