Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

Cannot add member to a chat room

$
0
0

openfire 4.0.2

https://github.com/igniterealtime/REST-API-Client

 

I am using the REST API Client to add a user to a room.

Looking at the debug information it seems to return success 201. However, the user is not added to the chat room.

 

1 > POST http://10.10.20.160:9090/plugins/restapi/v1/chatrooms/coffeeroom/members/steve@localhost.localdomain
1 > Authorization: Basic YWRtaW46Zm9ydW0xOA==
1 > Content-Type: application/xml

Apr 06, 2016 12:31:51 AM org.glassfish.jersey.filter.LoggingFilter log
INFO: 1 * Client response received on thread http-nio-8080-exec-2
1 < 201
1 < Access-Control-Allow-Credentials: true
1 < Access-Control-Allow-Headers: origin, content-type, accept, authorization
1 < Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, HEAD
1 < Access-Control-Allow-Origin: *
1 < Content-Length: 0
1 < Date: Tue, 05 Apr 2016 17:31:51 GMT
1 < Expires: Thu, 01 Jan 1970 00:00:00 GMT
1 < Set-Cookie: JSESSIONID=153sgnfp1oi1x16rjo68kvbwz8;Path=/;HttpOnly
1 < X-Frame-Options: deny

 

I have successfully created new group chat rooms using the REST API, but can't add any users into them. Using this code.

mRestXmppClient.getRestApiClient().addMember(roomName, username);

 

Just wondering for this to work do I need to add any particular setting for the users, rooms, roles to add a user into a chat room?

 

Many thanks for any suggestions,


Viewing all articles
Browse latest Browse all 4979

Trending Articles