If there are two or more directories with the same name
(of the same user) the addon return always the first
found in the SQL dateien table.
For example, if there is a directory like this:
/mydir/test/test2/test/
whenever you try to enter the second "test" directory
you get the content of the first one (including its
test2 directory). You get something like this:
/mydir/test/test2/test/test2/
You can go on forever browsing inside these "virtual"
directories. Actually, if you try to copy recursively
the /mydir/test/ directory, the Windows Explorer (for
example) just hang there, asking for deeper and deeper
directories (I only waited until it went for the 108th
directory). This is not a fault of Win Explorer, as the
PHP script just tell it that there are more and more
directories inside.
The problem, I think, is with the _path_id function in
class_webdav.php which only search for the
filename/dirname in the SQL database table without
really checking if the parent of the directory is the
requested one (even though it has the necessary
information [the full path]).
I think the _path_id function should recurse checking
for the parent of each matching filename/dirname. I
think this can be done from the outer leaf to the root
or viceversa, anyway it should check the full path, not
just the immediate parent.
In Phprojekt filename/dirname selection and checking is
easier, because there is always an ID associated with
the filename/dirname in every form or link. But in this
case I think the only solution is to walk the possible
branchs until a match is found.
I hope what I have said make some sense. :)
Mario A. Valdez-Ramírez.