diff options
author | Robin Appelman <robin@icewind.nl> | 2025-02-03 15:39:40 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2025-02-13 11:21:41 +0100 |
commit | 67b013bc389a6232a93cd08e0951ecbb4c9fe0b4 (patch) | |
tree | d8159af7bab56e445b408e31477d26ea7802470a | |
parent | 83986127f5326b6ad1a1010090c01dc0ba4839e1 (diff) | |
download | nextcloud-server-backport/49004/stable28.tar.gz nextcloud-server-backport/49004/stable28.zip |
fix: use relative paths for upload locksbackport/49004/stable28
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Directory.php | 4 |
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 0aa9e169228..eeb480ed3ff 100644 --- a/apps/dav/lib/Connector/Sabre/Directory.php +++ b/apps/dav/lib/Connector/Sabre/Directory.php @@ -143,11 +143,11 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol // 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 (\OCP\Files\StorageNotAvailableException $e) { |