diff options
author | blizzz <blizzz@owncloud.com> | 2013-11-20 07:51:47 -0800 |
---|---|---|
committer | blizzz <blizzz@owncloud.com> | 2013-11-20 07:51:47 -0800 |
commit | 8f33286b1933cf3532a8cf15d391e85deb30d429 (patch) | |
tree | dd6c386cfc8db40ee7cba8017cd8ddb223be3f02 /lib/private | |
parent | c221e8272cacc198b963e9dd38463aa0f3d8897c (diff) | |
parent | 51a8172868c1d6763041b12bfaa9cd2f1cbe8350 (diff) | |
download | nextcloud-server-8f33286b1933cf3532a8cf15d391e85deb30d429.tar.gz nextcloud-server-8f33286b1933cf3532a8cf15d391e85deb30d429.zip |
Merge pull request #5966 from owncloud/fixing-fileid-webdav-master
always get the right node for the given file path
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/connector/sabre/filesplugin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php index 89444cb8d18..1c80ebe8044 100644 --- a/lib/private/connector/sabre/filesplugin.php +++ b/lib/private/connector/sabre/filesplugin.php @@ -78,6 +78,8 @@ class OC_Connector_Sabre_FilesPlugin extends Sabre_DAV_ServerPlugin * @throws Sabre_DAV_Exception_BadRequest */ public function sendFileIdHeader($filePath, Sabre_DAV_INode $node = null) { + // we get the node for the given $filePath here because in case of afterCreateFile $node is the parent folder + $node = $this->server->tree->getNodeForPath($filePath); if ($node instanceof OC_Connector_Sabre_Node) { $fileId = $node->getFileId(); if (!is_null($fileId)) { |