use the right interface \Sabre\DAVACL\PrincipalBackend\BackendInterface

This commit is contained in:
Thomas Müller 2014-06-03 11:43:28 +02:00
parent 76e04027bc
commit 48eee0b432
3 changed files with 2 additions and 11 deletions

@ -1 +1 @@
Subproject commit 255f5e45c927c7d4af39c9e8aa0b1506689aadd9 Subproject commit 045dde529e050316788a63cd0067a38bbc6921b0

View File

@ -117,15 +117,6 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements \Sabre\
throw new OC_Connector_Sabre_Exception_FileLocked($e->getMessage(), $e->getCode(), $e); throw new OC_Connector_Sabre_Exception_FileLocked($e->getMessage(), $e->getCode(), $e);
} }
// rename to correct path
$renameOkay = $this->fileView->rename($partpath, $this->path);
$fileExists = $this->fileView->file_exists($this->path);
if ($renameOkay === false || $fileExists === false) {
\OC_Log::write('webdav', '\OC\Files\Filesystem::rename() failed', \OC_Log::ERROR);
$this->fileView->unlink($partpath);
throw new \Sabre\DAV\Exception('Could not rename part file to final file');
}
// allow sync clients to send the mtime along in a header // allow sync clients to send the mtime along in a header
$mtime = OC_Request::hasModificationTime(); $mtime = OC_Request::hasModificationTime();
if ($mtime !== false) { if ($mtime !== false) {

View File

@ -7,7 +7,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
class OC_Connector_Sabre_Principal implements Sabre\DAVACL\IPrincipalBackend { class OC_Connector_Sabre_Principal implements \Sabre\DAVACL\PrincipalBackend\BackendInterface {
/** /**
* Returns a list of principals based on a prefix. * Returns a list of principals based on a prefix.
* *