Webdav to owncloud repository

Re: Webdav to owncloud repository

by Sergio Rabellino -
Number of replies: 0
Picture of Particularly helpful Moodlers Picture of Plugin developers

I faced the same problem with my OwnCloud server 9.x and I solved it by incrementing the value of  $_maxheaderlenth from 1000 to 65536 in lib/webdavlib.php

Below my git diff on moodle 2.7.16 branch, but should be almost the same on moodle 3.x:

--- a/lib/webdavlib.php
+++ b/lib/webdavlib.php
@@ -74,11 +74,7 @@ class webdav_client {
private $_header='';
private $_body='';
private $_connection_closed = false;
-// RABSER CHANGE
- // OwnCloud 9 Compatibility change
- //private $_maxheaderlenth = 1000;
- private $_maxheaderlenth = 65536;
-// RABSER END
+ private $_maxheaderlenth = 1000;
private $_digestchallenge = null;
private $_cnonce = '';
private $_nc = 0;


hope this helps.