Page MenuHomePhorge

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

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',
 ),

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];