From 8c5302847b9ac3d491c1b62411e62f509573fe7a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 7 Aug 2015 16:04:27 +0200 Subject: add test framework for doing full request webdav tests --- lib/private/connector/sabre/exceptionloggerplugin.php | 2 +- lib/private/connector/sabre/file.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/connector') 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); -- cgit v1.2.3