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:
and it redirect to login.jsp page with parameters like:
To:http://192.168.1.104:9090/login.jsp?url=%2Fplugins%2Fmucservice%2Fchatrooms%2Faa aa%2Fmembers%2Fjjj%40aaa.com.tw%3Fservicename%3Ddiy with status: 302 HTTP/1.1 302 Found
Redirection information has not been cached.
Location: http://192.168.1.104:9090/login.jsp?url=%2Fplugins%2Fmucservice%2Fchatrooms%2Faa aa%2Fmembers%2Fjjj%40aaa.com.tw%3Fservicename%3Ddiy
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.
And you mentioned by updating the whole MUC channel you mean using other tools instead of your plugin right?
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: https://www.igniterealtime.org/projects/openfire/plugins/mucservice/readme.html# 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