Menu

#13 ValueIndexer search freezing on xpath with "starts-with"

crash
open
Indexers (2)
5
2004-12-07
2004-12-07
No

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.

Discussion

  • Yaroslav Sokolov

    test case for described bug

     
  • Yaroslav Sokolov

    patch, fixes this bug

     
  • Yaroslav Sokolov

    Logged In: YES
    user_id=972975

    it has been added patch, fixes described bug

     

Log in to post a comment.