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

A Bug about get Members and admins from a room

$
0
0

I send a xml element to the room

 

<iq type="get" to="6ace0fd2f59f13c2484336dd06b4462a@bizmanager.msz006" id="getRoomMemberList"><query xmlns="http://jabber.org/protocol/muc#admin"><item affiliation="member"/><item affiliation="owner"/><item affiliation="admin"/></query></iq>

 

but the openfire return items is only the admins. when i moved the owner at the last,openfire return the owner only.

 

My openfire version is 3.8.2,and the same as 3.9.1.

 

At last i found that in the class: openfire.muc.spi.IQAdminHandler,function: handleItemsElement(MUCRole senderRole, List<Element> itemsList, IQ reply), while handle the itemslist by the " for (Object anItem : itemsList)",reset the query child every time.

 

So i move code " Element result = reply.setChildElement("query", "http://jabber.org/protocol/muc#admin"); " before " for (Object anItem : itemsList)" and fix the problem.


Viewing all articles
Browse latest Browse all 10742

Trending Articles