summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-21 13:50:33 +0200
committerRobin Appelman <icewind@owncloud.com>2015-04-27 14:07:16 +0200
commit2e897f05b12689d783c68bcfc6206e2adfde75b1 (patch)
treeb24c5ed90f2b99cdbd2a558e901a5f5e3cc87f51
parentdd9601ae8fd0f50eb87d2ce3eed6c5f845573987 (diff)
downloadnextcloud-server-2e897f05b12689d783c68bcfc6206e2adfde75b1.tar.gz
nextcloud-server-2e897f05b12689d783c68bcfc6206e2adfde75b1.zip
triger propagation for webdav uploads
use post hooks for share etag propagator
-rw-r--r--apps/files_sharing/lib/propagation/propagationmanager.php6
-rw-r--r--lib/private/connector/sabre/file.php1
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/propagation/propagationmanager.php b/apps/files_sharing/lib/propagation/propagationmanager.php
index 794a7ae04f5..fa073be7f60 100644
--- a/apps/files_sharing/lib/propagation/propagationmanager.php
+++ b/apps/files_sharing/lib/propagation/propagationmanager.php
@@ -105,8 +105,8 @@ class PropagationManager {
// for marking shares owned by the active user as dirty when a file inside them changes
$this->listenToOwnerChanges($user->getUID(), $user->getUID());
- \OC_Hook::connect('OC_Filesystem', 'write', $watcher, 'writeHook');
- \OC_Hook::connect('OC_Filesystem', 'delete', $watcher, 'writeHook');
- \OC_Hook::connect('OC_Filesystem', 'rename', $watcher, 'renameHook');
+ \OC_Hook::connect('OC_Filesystem', 'post_write', $watcher, 'writeHook');
+ \OC_Hook::connect('OC_Filesystem', 'post_delete', $watcher, 'writeHook');
+ \OC_Hook::connect('OC_Filesystem', 'post_rename', $watcher, 'renameHook');
}
}
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index 100aba13668..8ff5577629d 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -181,6 +181,7 @@ class File extends Node implements IFile {
$view = \OC\Files\Filesystem::getView();
if ($view) {
$hookPath = $view->getRelativePath($this->fileView->getAbsolutePath($this->path));
+ $this->fileView->getUpdater()->propagate($hookPath);
if (!$exists) {
\OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, array(
\OC\Files\Filesystem::signal_param_path => $hookPath