No files can be found by webdav plugin

No files can be found by webdav plugin

by Tobias Jäger -
Number of replies: 2
We are trying to connect our Owncloud repository with moodle. Unfortunately no files can be found by the filepicker. I tried to connect with two different owncloud servers but neither of them work. Both of them were checked on functionality with litmus, the two passed.

The one repository I need to connect is behind a proxy, but I managed to successfully connect on it writing  a small php program using the sabre/dav library, so i think this shouldn't be a problem.

Settings:

  • name: Owncloud
  • webdav-Type: https
  • Webdav-Server: my-url.de
  • webdav-path: /owncloud/remote.php/webdav/
  • authentication: WebDAV-Basicauthentication
  • Webdav Server-Port: 15443
  • WebDAV Server-user: mylogin
  • WebDAV Server-Password: mypassword


Am I missing anyting?

Average of ratings: -
In reply to Tobias Jäger

Re: No files can be found by webdav plugin

by Tobias Jäger -

Okay I found the Error myself.

In line 1480 in webdav.php lib, the response header is parsed. But instead of checking for the real header length, a constant 1000 Byte are assumed. Therefor the header cannot be completely parsed and some fields like ContentType cannot be found.

By removing the condition everything works fine.


 

In reply to Tobias Jäger

Re: No files can be found by webdav plugin

by Jorge Ramos -

Hi Tobias!!

I only have one thing to say "THANK YOU!"

You've found the solution for me, maybe you should write this like a bug in the Tracker Moodle.

I changed to this:

$header.=fread($this->sock, 8192);

And everything was OK