Search Dialog error





Walter Ebeling
June 22, 2011, 6:02 PM

Mass closing of all bugs resoved during 2.6.0 and 2.6.1

Holger Bergunde
March 25, 2011, 3:19 PM

i wont patch this solution.

if (column.getVariable().equals(tableValue)) {
tableValue = column.getVariable();

doesn't make sense to me. I think is bug is related to Openfire and/or the language pack you are using.
Asking openfire(with Portuguese language) for search result it sends back the wrong package.

I debugged a package and you can see the error:
First Step: Server Sends the table column headers: label="JID", label="Usuárion" ..etc. then he sets the variable name. var = "Username" for label="Usuário". Later on the server sends back the search results with the information in which column spark should add the value. And there is the mistake. we have a table column with the label "Usuaério" but the variable of this column is "Username".
The table would look like this:

Shown column header: |JID |Usuàrio |Nome |Email|
identification var (not shown): |jid |Username |Name |Email|

Error appears -> Spark could not add a value where identification var = Usuário.

PLEASE CHECK YOUR i18n LANGUAGE FILE. Maybe there is the Mistake.

<iq id="15Pd7-30" to="holger@locahost/spark" from="search.locahost" type="result">
<query xmlns="jabber:iq:search">
<x xmlns="jabber:x:data" type="result">
<field label="JID" var="jid"/> <------- setting column headers incl. var's
<field label="Usuário" var="Username"/>
<field label="Nome" var="Name"/>
<field label="Email" var="Email"/>
<field var="jid">
<field var="Usuário">
<value>holger-jabber</value> <---- add this information where var="Usuário" in your table! COULD NOT FIND
<field var="Nome">
<field var="Email">
<field var="FORM_TYPE" type="hidden"/>

Your pinned fields
Click on the next to a field label to start pinning.




Holger Bergunde


Walter Ebeling