aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-02-03 15:39:40 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2025-02-11 14:38:27 +0100
commit4978cd3c2107f55e7f65d5aaf6e500318e9ef16a (patch)
treed68f0f6d7b1706c0d6b8b9ca13379f22fef6637c
parent9e1ae74a1c862e223185cd516866a1469b989106 (diff)
downloadnextcloud-server-4978cd3c2107f55e7f65d5aaf6e500318e9ef16a.tar.gz
nextcloud-server-4978cd3c2107f55e7f65d5aaf6e500318e9ef16a.zip
fix: use relative paths for upload locksbug/48678/restore-dav-error-response-2
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/dav/lib/Connector/Sabre/Directory.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php
index ebef7f91ee0..7215723803f 100644
--- a/apps/dav/lib/Connector/Sabre/Directory.php
+++ b/apps/dav/lib/Connector/Sabre/Directory.php
@@ -111,11 +111,11 @@ class Directory extends Node implements \Sabre\DAV\ICollection, \Sabre\DAV\IQuot
// only allow 1 process to upload a file at once but still allow reading the file while writing the part file
$node->acquireLock(ILockingProvider::LOCK_SHARED);
- $this->fileView->lockFile($path . '.upload.part', ILockingProvider::LOCK_EXCLUSIVE);
+ $this->fileView->lockFile($this->path . '/' . $name . '.upload.part', ILockingProvider::LOCK_EXCLUSIVE);
$result = $node->put($data);
- $this->fileView->unlockFile($path . '.upload.part', ILockingProvider::LOCK_EXCLUSIVE);
+ $this->fileView->unlockFile($this->path . '/' . $name . '.upload.part', ILockingProvider::LOCK_EXCLUSIVE);
$node->releaseLock(ILockingProvider::LOCK_SHARED);
return $result;
} catch (StorageNotAvailableException $e) {