stack overflow in file module

Bug #1029483 reported by Alexander Kreutz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Undecided
Unassigned

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.

Revision history for this message
Alexander Kreutz (kreutz) wrote :

This is not a duplicate as the endless recursion occurs in file:copy or file:delete and not in file:list itself.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.