]> source.dussan.org Git - nextcloud-server.git/commitdiff
if file gets modified, always remove etag for all shared folder to make sure that...
authorBjörn Schießle <schiessle@owncloud.com>
Thu, 8 Nov 2012 11:31:39 +0000 (12:31 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Thu, 8 Nov 2012 14:18:49 +0000 (15:18 +0100)
lib/connector/sabre/node.php

index b116f01cbc7183a83db8c29f404de4c86deb1004..26983be2f8a364b8c986910d8522b539ca339df3 100644 (file)
@@ -275,6 +275,13 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
                        );
                $vals = array( $source['user'], self::GETETAG_PROPERTYNAME );
                $query->execute(array_merge( $vals, $paths ));
+               
+               //remove etag for all Shared folders
+               $query = OC_DB::prepare( 'DELETE FROM `*PREFIX*properties`'\r
+                               .' WHERE `propertypath` = "/Shared"'\r
+               );\r
+               $query->execute(array());
+               
        }
        
        protected function getFileSource($path) {