Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Smack requests getAdmins() in wrong MUC namespace

$
0
0

Hi.

 

I just discovered, that Smack sends the MUC getAdmins() request in the wrong namespace.

 

Smack sends in #owner namespace:

 

<iq id="9S7Hf-35" to="5711dc10-967e-487d-bcce-308ab796b958@conference.domain" type="get"><query xmlns="http://jabber.org/protocol/muc#owner"><item affiliation="admin"/></query></iq>

 

The specification says, it must be in #admin namespace:

 

http://xmpp.org/extensions/xep-0045.html#modifyadmin

 

<iqfrom='bard@shakespeare.lit/desktop'
   
id='admin3'
   
to='coven@chat.shakespeare.lit'
   
type='get'>
 
<queryxmlns='http://jabber.org/protocol/muc#admin'>
   
<itemaffiliation='admin'/>
 
</query>
</iq>

 

The whole method getAffiliatesByOwner() doesn't make much sense (it is not specified by XMPP) and is only called by getAdmins().


Viewing all articles
Browse latest Browse all 10742

Trending Articles