You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Sean Kelly <ke...@ad1440.net> on 2002/05/04 23:14:37 UTC

PATCH: Database.java dbroot dir bug

When embedding a Xindice database within another application on a Windows
system, setting the dbroot to an absolute pathname like "C:\..." fails with
a BTreeFiler exception that the database isn't open.

The problem is in Database.setConfig, which checks if the dbroot is an
absolute path by looking to see if the string starts with "/", which is
great on Unix, not so great on Windoze.

The attached patch fixes the bug.

Thanks for providing Xindice.

--
Sean Kelly
Independent Consultant
http://kelly.homeunix.com/