Page MenuHomekolab.org

webdav driver not working
Closed, ResolvedPublic

Description

when try to attach /open/download some files the size reported is 0 and the task fail

I made a small change in webdav_file_storage.php using the existing code in file_info() function

Details

Ticket Type
Task

Event Timeline

mbadici created this task.Mar 5 2018, 11:25 AM

So, your webdav server does not return Content-Length or the http client code is buggy? Did you try to log response headers ($response['headers'])?

I didn't logged the $response, good point. The server is returning the header but I think the format is different.

I wrote the $response in the log and content-lenght is an array:

'content-length' => 
 array (
   0 => '20480',
 ),
machniak claimed this task.Mar 6 2018, 4:23 PM

Looks like the fix in https://git.kolab.org/rC3b776f3a10e2443c0e47d331333265f9c75d7392 wasn't correct. We need to just support both cases.

So maybe we can just change in:

$size = $response['headers']['content-length'][0];
machniak closed this task as Resolved.Mar 6 2018, 5:39 PM

Fixed in 876c956c24a4d.