Problem
I’m getting the following message in my data/owncloud.log:
"webdav","message":"Sabre_DAV_Exception_BadRequest: expected filesize 4734206 got 458752","level":4,"time":"2014-07-10T13:58:54+00:00"
or
"webdav","message":"Sabre_DAV_Exception_BadRequest: expected filesize 4734206 got 0","level":4,"time":"2014-07-10T13:58:54+00:00"}
Info
This can happen because of various reasons:
- A bug in Apache https://github.com/owncloud/core/issues/9832#issuecomment-148380791
- A too small “SSLRenegBufferSize” Apache setting https://github.com/owncloud/core/issues/9832#issuecomment-90508358
- A too small “LimitRequestBody” Apache setting https://github.com/owncloud/core/issues/9832#issuecomment-68443113
- Timeouts on server side https://github.com/owncloud/core/issues/9832#issuecomment-85709557
- Just a temporary network issue https://github.com/owncloud/core/issues/9832#issuecomment-86418646
- An issue within the temporary upload directory. You can try to set this to another location like described here: https://forum.owncloud.org/viewtopic.php?p=109928#p109928
- An wrong configured “output_buffering” setting. Try to set “output_buffering” to “Off” in your php.ini
- An issue with the “Upload limit” setting within the sync client: https://github.com/owncloud/core/issues/9832#issuecomment-112305152
- A possible bug in oC which gets fixed with 9.0.3/8.2.6/8.1.9/8.0.14 https://github.com/owncloud/core/issues/24653#issuecomment-220017778
There could be further, currently unknown environment settings and setups responsible for this issue.