exists(<xpath>) returns empty, database corruption
Monday, 14 June 2010 · 5 messages
SS
Swaminathan S14 Jun 2010 02:32 #
Hi,
I am using BaseX version 6.03 using client server mode. I face 2 kinds of problems:
1) sometimes, BaseX returns nothing for exists(<xpath>) function (only true or false is expected) - in these cases, I execute some
XQueries(XQuery-updates and XQueries) using XQuery API.This starts happening consistently for a few xpaths but not for all xpaths. Just to give you the scenario, my xupdates are always done such that I export the database after every database change.
Also, I operate on only on one database(one xml file).
2) also sometimes, the database gets corrupted (some elements get moved beyond the end of the root element).
I want to know if you have ever encountered this problem, the cause and if they have been fixed in newer versions.
Thanks,
Swaminathan Sahiram
CG
Christian Grün14 Jun 2010 12:28 #
Swaminathan,
thanks for your mail. I'm sorry there is no chance to give you an answer on that as long as we don't have a reproducable example, or at least some insight into the queries and documents you are working with.
Best,
Christian
Quoted text · Swaminathan S · 32 lines
On Mon, Jun 14, 2010 at 2:32 AM, Swaminathan S <swami2 at gmail.com> wrote: > Hi, > > I am using BaseX version 6.03 using client server mode. I face 2 kinds > of problems: > 1) sometimes, BaseX returns nothing for exists(<xpath>) function (only true > or false is expected) - in these cases, I execute some > XQueries(XQuery-updates and XQueries) using XQuery API.This starts happening > consistently for a few xpaths but not for all xpaths. Just to give you the > scenario, my xupdates are always done such that I export the database after > every database change. > Also, I operate on only on one database(one xml file). > 2) also sometimes, the database gets corrupted (some elements get moved > beyond the end of the root element). > > I want to know if you have ever encountered this problem, the cause and if > they have been fixed in newer versions. > > > Thanks, > > Swaminathan Sahiram > > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
KS
Kim Stebel14 Jun 2010 16:17 #
Hello List,
how can I reset the admin password for BaseX 6? I can't remember it. :(
Thank you
Kim
MS
Michael Seiferle14 Jun 2010 16:30 #
Hi Kim,
look for a file named .basexperm (on unixoid OSes) it will probably be in your user folder. On Windows it might be somewhere in c:/Documents and Settings/basex/
Open it with any text editor and search for the line:
Quoted text · Kim Stebel · 1 line
> admin hash123
replace the 'hash123' part
with the unsalted md5 hash of the password of your choice [1].
Kind regards,
Michael
Quoted text · Kim Stebel · 11 lines
Am 14.06.2010 um 16:17 schrieb Kim Stebel: > Hello List, > > how can I reset the admin password for BaseX 6? I can't remember it. :( > > Thank you > Kim > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
[1] You may use http://www.functions-online.com/md5.html for creation of that hash
CG
Christian Grün14 Jun 2010 16:50 #
Dear Kim,
if you want to reset all passwords, just delete the .basexperm file in your home directory.
Christian
Quoted text · Michael Seiferle · 35 lines
On Mon, Jun 14, 2010 at 4:30 PM, Michael Seiferle <michael.seiferle at uni-konstanz.de> wrote: > Hi Kim, > look for a file named .basexperm (on unixoid OSes) it will probably be in > your user folder. > On Windows it might be somewhere in c:/Documents and Settings/basex/ > Open it with any text editor and search for the line: > > admin hash123 > > replace the 'hash123' part > with the unsalted md5 hash of the password of your choice [1]. > Kind regards, > Michael > Am 14.06.2010 um 16:17 schrieb Kim Stebel: > > Hello List, > > how can I reset the admin password for BaseX 6? I can't remember it. :( > > Thank you > Kim > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > [1] You may use http://www.functions-online.com/md5.html for creation of > that hash > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery