[Kolab-devel] bug in webdav chwala driver

Mihai Badici mihai at badici.ro
Mon Mar 5 22:44:32 CET 2018



On 03/05/2018 10:45 AM, Aleksander Machniak wrote:
> On 03/05/2018 06:16 AM, Mihai Badici wrote:
>> I made a little change using the existing code in file_info() function 
>> and seems it works.
>>
>> What's the right way to submit the patch?
> Create a differential on https://git.kolab.org/ or open a task ticket with patch in the
> issue description (or attached if bigger).
Ok, I opened a task and attached the diff file ( is pretty small)

I somehow addressed also the second issue: the root folder is not listed.
When listing the root folder there is an if:
   if ($path !== '') {
                $result[] = $path;
            }
I added:
   else {   $result[] = "Cloud"; }
which will list an extra folder named "Cloud" ; I will replace "Cloud"
in file_list() with "" and it will list my files from root directory. If
the folder name is good enough the user will manage.
It's a nasty workaround but I can live with at least for the moment.
Looks like if the $path is empty the folder is not listed at all but I
didn't found how to force it to list.









More information about the devel mailing list