]> source.dussan.org Git - nextcloud-server.git/commitdiff
content size checks are not valid for LOCK
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 12 Sep 2014 07:42:32 +0000 (09:42 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 12 Sep 2014 07:42:32 +0000 (09:42 +0200)
lib/private/connector/sabre/file.php

index 5333583e78ded310d03f6be262357568f9eb4ab0..246749903b39ee38f1445d5e7a2b0dfa5d32929e 100644 (file)
@@ -105,7 +105,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements \Sabre\
                // if content length is sent by client:
                // double check if the file was fully received
                // compare expected and actual size
-               if (isset($_SERVER['CONTENT_LENGTH'])) {
+               if (isset($_SERVER['CONTENT_LENGTH']) && $_SERVER['REQUEST_METHOD'] !== 'LOCK') {
                        $expected = $_SERVER['CONTENT_LENGTH'];
                        $actual = $this->fileView->filesize($partFilePath);
                        if ($actual != $expected) {