[Pkg-owncloud-commits] [owncloud] 73/394: if file gets modified, always remove etag for all shared folder to make sure that the sync client checks the shared folder for changes

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:30 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 501bb0afd6da373a57d101269d732dcfadd8fb4c
Author: Björn Schießle <schiessle at owncloud.com>
Date:   Thu Nov 8 12:31:39 2012 +0100

    if file gets modified, always remove etag for all shared folder to make sure that the sync client checks the shared folder for changes
---
 lib/connector/sabre/node.php |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php
index b116f01..26983be 100644
--- a/lib/connector/sabre/node.php
+++ b/lib/connector/sabre/node.php
@@ -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`'
+				.' WHERE `propertypath` = "/Shared"'
+		);
+		$query->execute(array());
+		
 	}
 	
 	protected function getFileSource($path) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list