If a collection has ValueIndexer with type other than
"string" and
this indexer is used in xpath-search with 'starts-with'
function, the
search freexes.
Cause:
The described problem happens because of
com.dbxml.db.core.indexer.IndexQuery.IndexQuery(com.dbxml.db.core.indexer.IndexPattern,
int, Value)
may add byte "-1" to the raw Value data, but it has not
been taken into account in Value.toString(), so,
UTF8.toString(...) freezes.
My profile: dbXML-2.0, jdk-1.4.2_04, Linux (SuSe 9.2),
i386.
I have attached test case, illustrating this freezing.
Regards,
Yaroslav Sokolov.
p.s. in some minutes I will upload the patch, fixes
this bug.
test case for described bug
patch, fixes this bug
Logged In: YES
user_id=972975
it has been added patch, fixes described bug