summaryrefslogtreecommitdiffstats
path: root/lib/connector/sabre/node.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-02 18:26:27 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-02 18:26:27 +0100
commited4130474a60599798ff42b8390b433126f658a2 (patch)
tree132859ffd2f536b4b5131500896aa246fae43241 /lib/connector/sabre/node.php
parentc61c98cbef9cc6ece60175d5cf45dbc6d5a1ca41 (diff)
downloadnextcloud-server-ed4130474a60599798ff42b8390b433126f658a2.tar.gz
nextcloud-server-ed4130474a60599798ff42b8390b433126f658a2.zip
Dav: update etag in filecache when doing a PROPSET
Diffstat (limited to 'lib/connector/sabre/node.php')
-rw-r--r--lib/connector/sabre/node.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php
index b48d3b41f24..52995630211 100644
--- a/lib/connector/sabre/node.php
+++ b/lib/connector/sabre/node.php
@@ -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 )) {