]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dav: update etag in filecache when doing a PROPSET
authorRobin Appelman <icewind@owncloud.com>
Sat, 2 Feb 2013 17:26:27 +0000 (18:26 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sat, 2 Feb 2013 17:26:27 +0000 (18:26 +0100)
lib/connector/sabre/node.php

index b48d3b41f2461cf3532da6415ed44770291dbab2..52995630211fe2a9c012420ecbef320af8697397 100644 (file)
@@ -154,7 +154,9 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
                                }
                        }
                        else {
-                               if( strcmp( $propertyName, self::LASTMODIFIED_PROPERTYNAME) === 0 ) {
+                               if( strcmp( $propertyName, self::GETETAG_PROPERTYNAME) === 0 ) {
+                                       \OC\Files\Filesystem::putFileInfo($this->path, array('etag'=> $propertyValue));
+                               } elseif( strcmp( $propertyName, self::LASTMODIFIED_PROPERTYNAME) === 0 ) {
                                        $this->touch($propertyValue);
                                } else {
                                        if(!array_key_exists( $propertyName, $existing )) {