diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index abbcf4ea4331b..cd9a05a2a1db0 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -764,6 +764,7 @@ public function acquireLock($path, $type, ILockingProvider $provider) { try { $provider->acquireLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type, $this->getId() . '::' . $path); } catch (LockedException $e) { + $e = new LockedException($e->getPath(), $e, $e->getExistingLock(), $path); if ($logger) { $logger->info($e->getMessage(), ['exception' => $e]); } @@ -796,6 +797,7 @@ public function releaseLock($path, $type, ILockingProvider $provider) { try { $provider->releaseLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type); } catch (LockedException $e) { + $e = new LockedException($e->getPath(), $e, $e->getExistingLock(), $path); if ($logger) { $logger->info($e->getMessage(), ['exception' => $e]); } @@ -828,6 +830,7 @@ public function changeLock($path, $type, ILockingProvider $provider) { try { $provider->changeLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type); } catch (LockedException $e) { + $e = new LockedException($e->getPath(), $e, $e->getExistingLock(), $path); if ($logger) { $logger->info($e->getMessage(), ['exception' => $e]); }