summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-08-07 16:04:27 +0200
committerRobin Appelman <icewind@owncloud.com>2015-08-11 14:43:46 +0200
commit8c5302847b9ac3d491c1b62411e62f509573fe7a (patch)
tree1be1a8cb26b50ad3aafc4bb7d96f656a0841da64 /lib/private
parent6e4a79f8529a69b846f73257cc581d2b80f7762d (diff)
downloadnextcloud-server-8c5302847b9ac3d491c1b62411e62f509573fe7a.tar.gz
nextcloud-server-8c5302847b9ac3d491c1b62411e62f509573fe7a.zip
add test framework for doing full request webdav tests
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/connector/sabre/exceptionloggerplugin.php2
-rw-r--r--lib/private/connector/sabre/file.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/connector/sabre/exceptionloggerplugin.php b/lib/private/connector/sabre/exceptionloggerplugin.php
index 741ba4d3e05..53a1f738ea6 100644
--- a/lib/private/connector/sabre/exceptionloggerplugin.php
+++ b/lib/private/connector/sabre/exceptionloggerplugin.php
@@ -28,7 +28,7 @@ use Sabre\DAV\Exception;
use Sabre\HTTP\Response;
class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
- private $nonFatalExceptions = array(
+ protected $nonFatalExceptions = array(
'Sabre\DAV\Exception\NotAuthenticated' => true,
// the sync client uses this to find out whether files exist,
// so it is not always an error, log it as debug
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index fa2f5ce18d7..b7d0c547f24 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -332,7 +332,7 @@ class File extends Node implements IFile {
$info = \OC_FileChunking::decodeName($name);
if (empty($info)) {
- throw new NotImplemented();
+ throw new NotImplemented('Invalid chunk name');
}
$chunk_handler = new \OC_FileChunking($info);
$bytesWritten = $chunk_handler->store($info['index'], $data);