[JDEV] XML parser problem (discovered using xdb_sql)

Benoit Orihuela borihuela at idealx.com
Mon Nov 5 02:51:07 CST 2001


> When the jabber server is started, it reads the xdb_sql XML configuration,
> which has a few text elements like the following:
>       <text>
>         DELETE FROM users WHERE username = '$$user$$'
>       </text>
> When the xdb_sql module attempts to get the element node data, it makes
> a call to xmlnode_get_data() which returns an empty string with a new line
> character.
> [...]
> It tries to read the data for the bindvar elements. It should read four
> strings,
> $$username$$, $$hash$$, $$token$$ and $$sequence$$.
> However, what it actually reads is:
> $$username$$, $$ha, $$token$$ and $$sequence$$
> [...]
> Has anyone else noticed this?
Yes, I've had exactly the same problems when installing xdb_sql on a
server running on Sun Solaris.
I've resolved the first one like you did.
For the second problem, I don't know where the bug comes from but I
know that it does not happen with the jabber-1.4.2-test server ...

Regards,


Benoit.

-- 
Benoit Orihuela		
IDEALX S.A.S.



More information about the JDev mailing list