richardssam

Openfire 3.4.1 doesnt like spark

Discussion created by richardssam on Nov 7, 2007
Latest reply on Nov 7, 2007 by Gaston Dombiak

 

We have installed openfire 3.4.1 on a windows server, and after the upgrade the user search tool stopped working.

 

 

When I enter a user we get "Unable to contact search service". Investigating further, I think what is happening is when spark asks for the search services, it assumes there is only one jabber:iq:search, but now there are aparently 2, the second one being a search service for conference rooms (which does seem a little odd).

 

 

What I have done to fix this is to modify the file:  src/java/org/jivesoftware/sparkimpl/search/users/UserSearchService.java

 

 

And modified getServices():

 

 

if (info.containsFeature("jabber:iq:search")) {

searchServices.add(item.getEntityID());

}

 

 

 

to:

 

 

 

if (info.containsFeature("jabber:iq:search") && !info.containsFeature("http://jabber.org/protocol/muc")) {

searchServices.add(item.getEntityID());

 

 

 

}

 

 

 

Does that make sense?

 

 

 

 

 

 

 

Sam.

 

 

Outcomes