Public bug reported:

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.

** Affects: zorba
     Importance: Undecided
         Status: New

-- 
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

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to