Search Dialog error
Description
Environment
Activity

Walter Ebeling June 22, 2011 at 6:02 PM
Mass closing of all bugs resoved during 2.6.0 and 2.6.1

Holger Bergunde March 25, 2011 at 3:19 PM
i wont patch this solution.
if (column.getVariable().equals(tableValue)) {
tableValue = column.getVariable();
break;
}
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">
<reported>
<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"/>
</reported>
<item>
<field var="jid">
<value>holger-jabber@locahost</value>
</field>
<field var="Usuário">
<value>holger-jabber</value> <---- add this information where var="Usuário" in your table! COULD NOT FIND
</field>
<field var="Nome">
<value/>
</field>
<field var="Email">
<value/>
</field>
</item>
<field var="FORM_TYPE" type="hidden"/>
</x>
</query>
</iq>
Details
Details
Priority
Assignee

Reporter

http://community.igniterealtime.org/message/210532#210532
Please review and patch, looks simple