zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #12639
[Bug 1029483] Re: stack overflow in file module
*** This bug is a duplicate of bug 1023862 ***
https://bugs.launchpad.net/bugs/1023862
** This bug has been marked a duplicate of bug 1023862
file:list($path, true()) can produce infinite loops on some filesystems
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1029483
Title:
stack overflow in file module
Status in Zorba - The XQuery Processor:
New
Bug description:
At least on some platforms the file:list($dir) function also returns
the "." entry (current directory).
Other functions in the file module like file:copy and file:delete call file:list to retrieve directory contents but do not handle the
current directory entry "." or parent directory entry "..". This results in an endless recursion terminating with a stack overflow.
Either all functions in the file module must handle "." and ".."
correctly or file:list simply should not return it.
This happens on the demo appserver but not on my local computer so maybe it happens only with a certain library version -
but "." and ".." entries can be filtered out using XQuery.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1029483/+subscriptions
References