ownCloud 4.5.5: Files uploaded to shared folders with WebDAV report a filesize of '0'.
Hi,
When uploading files to a shared folder with WebDAV, ownCloud reports the file size as 0 when it's actually larger. The files have the correct file size when looking at the files on the filesystem. This happens very often when we upload anything through WebDAV. Some times it works, but I haven't been able to find a pattern to it, and it seems pretty random.
It is possible to open the 0 sized files from the Web GUI, but it fails when using a WebDAV client (WebDrive). I guess it is confused by the wrongly reported file size.
The file sizes can be corrected by running scanFiles() manually. All files are then reporting the correct file sizes, and we can open then without any issues.
I don't know if these errors are relevant to this issue, but I'm including them anyway. The interesting part is the "PHP Warning" message in between the others:
[15-Jan-2013 17:10:29 UTC] PHP Notice: Undefined index: id in /usr/local/apache/htdocs/lib/filecache.php on line 377
[15-Jan-2013 17:10:29 UTC] PHP Notice: Undefined index: mimetype in /usr/local/apache/htdocs/lib/filecache.php on line 379
[15-Jan-2013 17:10:29 UTC] PHP Notice: Undefined index: id in /usr/local/apache/htdocs/lib/filecache.php on line 377
[15-Jan-2013 17:10:29 UTC] PHP Notice: Undefined index: mimetype in /usr/local/apache/htdocs/lib/filecache.php on line 379
[15-Jan-2013 17:10:29 UTC] PHP Notice: Undefined index: id in /usr/local/apache/htdocs/lib/filecache.php on line 377
[15-Jan-2013 17:10:29 UTC] PHP Notice: Undefined index: mimetype in /usr/local/apache/htdocs/lib/filecache.php on line 379
[15-Jan-2013 17:10:29 UTC] PHP Notice: Undefined index: mimetype in /usr/local/apache/htdocs/lib/filecache.php on line 362
[15-Jan-2013 17:10:33 UTC] PHP Warning: unlink(/usr/local/apache/htdocs/data/rmk/files_versions//Shared/telsys.group.felles/Arkiv/2 Regnskap og finans/30 Provisjonsrapporter/Q4 2012/~$expresspcservice_Q4.xlsx.v1358269832): No such file or directory in /usr/local/apache/htdocs/apps/files_versions/lib/hooks.php on line 48
[15-Jan-2013 17:12:59 UTC] PHP Notice: Undefined index: id in /usr/local/apache/htdocs/lib/filecache.php on line 377
[15-Jan-2013 17:12:59 UTC] PHP Notice: Undefined index: mimetype in /usr/local/apache/htdocs/lib/filecache.php on line 379
[15-Jan-2013 17:12:59 UTC] PHP Notice: Undefined index: id in /usr/local/apache/htdocs/lib/filecache.php on line 377
[15-Jan-2013 17:12:59 UTC] PHP Notice: Undefined index: mimetype in /usr/local/apache/htdocs/lib/filecache.php on line 379
[15-Jan-2013 17:12:59 UTC] PHP Notice: Undefined index: id in /usr/local/apache/htdocs/lib/filecache.php on line 377
[15-Jan-2013 17:12:59 UTC] PHP Notice: Undefined index: mimetype in /usr/local/apache/htdocs/lib/filecache.php on line 379
Again, I'm not sure if this is related to the issue, but it looks like ownCloud is trying to delete/unlink a file version that doesn't exist. Is that normal?
Nothing of interest is logged in owncloud.log. Here is the apache access log from one of the times the issue occured:
[15/Jan/2013:20:54:53 +0100] 79.160.127.77 TLSv1 AES128-SHA "PUT /remote.php/webdav/Shared/telsys.group.felles/Testomr%C3%A5de/Telsys%20zimbra%20(6).pdf HTTP/1.1" -
[15/Jan/2013:20:54:54 +0100] 79.160.127.77 TLSv1 AES128-SHA "PROPFIND /remote.php/webdav/Shared/telsys.group.felles/Testomr%C3%A5de/Telsys%20zimbra%20(6).pdf/ HTTP/1.1" 971
[15/Jan/2013:20:54:54 +0100] 79.160.127.77 TLSv1 AES128-SHA "PROPPATCH /remote.php/webdav/Shared/telsys.group.felles/Testomr%C3%A5de/Telsys%20zimbra%20(6).pdf HTTP/1.1" 519
[15/Jan/2013:20:54:54 +0100] 79.160.127.77 TLSv1 AES128-SHA "PROPFIND /remote.php/webdav/Shared/telsys.group.felles/Testomr%C3%A5de/Telsys%20zimbra%20(6).pdf HTTP/1.1" 443
I can't see much of interest here, but maybe you can!
@feinom this issue is probably fixed with ownCloud 5. Can you test again and let us know if it still happens?