webdav subfolders are not listed in chwala
Open, Needs TriagePublic

Description

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

Details

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