webdav subfolders are not listed in chwala
Open, LowPublic


After closing T3763, files in the root folder of owncloud are listed in chwala but subfolders are not properly displayed.
Folders are listed as files with 0 bytes.
In webdav_file_storage.php line 577 :

$is_dir = in_array('{DAV:}collection', $props['{DAV:}resourcetype']->ResourceType);  always return 0

Replacing it with :
$is_dir = isset( $props['{DAV:}resourcetype']); seems to do the job better ( resourcetype is NULL for files) folders are skipped but this way the folders are not listed at all

Later edit: making the same change in list_folders() seems to solve the issue


Ticket Type

Event Timeline

mbadici created this task.Jan 30 2019, 10:56 PM
mbadici updated the task description. (Show Details)Jan 30 2019, 11:04 PM

this is covered in my feature request:

Best regards

vanmeeuwen moved this task from Backlog to Reviewed on the Bug Reports board.Wed, Mar 27, 7:12 PM
vanmeeuwen lowered the priority of this task from Needs Triage to Low.
vanmeeuwen added a subscriber: vanmeeuwen.

While OwnCloud nor NextCloud WebDAV currently establish a priority for us, WebDAV more generally would.

However, since none of the circumstances articulated are produced from nor reproducible in any environment that is supported, and since this sort of half-assed attempt to make things function apparently requires multiple minor intrusions/distractions/contributions, I'll label this a low priority.