Subject: Can't grant admin privileges
hi,
i am using OpenFire server and using MucManager class.
i can't grant admin or owner privileges to an existing user, i have successfully granted membership but when i try to grant owner or admin i get this xml message:
this is my code part:
the sent stanza is:
the received stanza is:
room1@conference.dc is my room jid.
kosai@dc is my user jid which is already in owner list of the room.
ano_4c2bee6d@dc is the user jid which i want to grant him the admin privileges
thanks in advance.
i am using OpenFire server and using MucManager class.
i can't grant admin or owner privileges to an existing user, i have successfully granted membership but when i try to grant owner or admin i get this xml message:
this is my code part:
Jid newJid = new Jid("ano_4c2bee6d@dc");
manager.GrantAdminPrivileges(roomJid, newJid);
manager.GrantAdminPrivileges(roomJid, newJid);
the sent stanza is:
<iq id="agsXMPP_8" to="room1@conference.dc" type="set">
<query xmlns="http://jabber.org/protocol/muc#admin">
<item affiliation="admin" jid="ano_4c2bee6d@dc" />
</query>
</iq>
<query xmlns="http://jabber.org/protocol/muc#admin">
<item affiliation="admin" jid="ano_4c2bee6d@dc" />
</query>
</iq>
the received stanza is:
<iq xmlns="jabber:client" from="room1@conference.dc" to="kosai@dc/agsXMPP" type="error" id="agsXMPP_7">
<error code="400" type="modify">
<bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</iq>
<error code="400" type="modify">
<bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</iq>
room1@conference.dc is my room jid.
kosai@dc is my user jid which is already in owner list of the room.
ano_4c2bee6d@dc is the user jid which i want to grant him the admin privileges
thanks in advance.