WebDAV not working with 4.5.4
When I navigate to /remote.php/webdav in my browser with the most recent released server version (4.5.4), I get this:
Notice: Undefined offset: 0 in /www/owncloud/lib/files.php on line 48
Call Stack: 0.0001 637736
1. {main}() /www/owncloud/remote.php:0 0.0148 993480
2. require_once('/www/owncloud/apps/files/appinfo/remote.php') /www/owncloud/remote.php:40 0.0327 1330768
3. Sabre_DAV_Server->exec() /www/owncloud/apps/files/appinfo/remote.php:48 0.0328 1330904
4. Sabre_DAV_Server->invokeMethod() /www/owncloud/3rdparty/Sabre/DAV/Server.php:206 0.0328 1331736
5. Sabre_DAV_Server->broadcastEvent() /www/owncloud/3rdparty/Sabre/DAV/Server.php:437 0.1140 1593336
6. call_user_func_array() /www/owncloud/3rdparty/Sabre/DAV/Server.php:415 0.1140 1593952
7. Sabre_DAV_Browser_Plugin->httpGetInterceptor() /www/owncloud/3rdparty/Sabre/DAV/Server.php:0 0.1143 1595096
8. Sabre_DAV_Browser_Plugin->generateDirectoryIndex() /www/owncloud/3rdparty/Sabre/DAV/Browser/Plugin.php:135 0.3083 1882672
9. OC_Connector_Sabre_Directory->getChild() /www/owncloud/3rdparty/Sabre/DAV/Browser/Plugin.php:341 0.3083 1882888
10. OC_Files::getFileInfo() /www/owncloud/lib/connector/sabre/directory.php:96
Sabre_DAV_Exception_NotFound File with name /Shared could not be located 1.6.4
And there's only this, there is no directory listing as there used to be (before, when I still had 4.5.2).
Regarding the Exception about "/Shared": There is a Shared directory in the files folder of the logged in user; but I also don't understand why it would even need to exist; since it's the first time WebDAV access, so the "root" folder should be shown...
The apache error log has the same message, but not the Sabre_DAV_Exception.
My configuration: Apache 2.2.22 MySQL 5.5.28 PHP 5.3.10 All that running on an Ubuntu Server 12.04 x86_64
Maybe this is fixed also with https://github.com/owncloud/core/pull/710? I will have to try that...
@RandolfCarter Can you report if it is solved? More likely you need this commit https://github.com/owncloud/core/pull/705
Sorry can't test with stable45, can't get it running properly at the moment (possibly a configuration issue on my side, but don't have time to investigate further at the moment). What I did find out was that this only applies for the root directory, and yes also for the Shared directory (so #705 might help). When appending other directory names the index loads fine (I was wondering already why the client seemed to run fine)
Edit: I don't think #705 will fix this. I have applied the two one-line changes manually, but still get the abovementioned notice for root dir, and when opening Shared dir, I get the undefined offset notice twice; and in both cases no index...
At least with 4.5.5, this is not solved, I still see the exact same message.
Still an issue in my productive environment; can't reproduce it in a fresh installation, though... anybody got an idea?
It doesn't have a high priority for me at the moment, since it doesn't have a negative impact on my synchronzation (the clientsync subfolder works fine); but still it is annoyoing and I'd like to fix it, since I plan to mount the root folder via WebDAV at some point in the future...
@RandolfCarter Please check whether you have negative mtime values for oc_fscache as reported here https://github.com/owncloud/core/issues/1152
Indeed i have one such value (-1) for one file in my syncclient folder (and a few files with 0 value, is that a problem too?)...
And re-testing this issue reveals that it's not occuring at the moment. Not sure what fixed it, though - a rescan maybe? Not even for the folder where the file with negative mtime value is in I have a problem...
The issue seems fixed (now running with 4.5.8, hasn't occured again).