aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-10-08 17:31:53 +0200
committerGitHub <noreply@github.com>2024-10-08 17:31:53 +0200
commit05886d281d4c9c9b980dc50eaf551f4c3b28b3ef (patch)
tree974dafeab1f7e4923ed5997d4b4e107599da4eb7 /apps/files/lib
parent356f3ded52cf48a26295daef96c032d6d087a518 (diff)
parent0e282ea21a9a99bfd9e49316f216767145e500ca (diff)
downloadnextcloud-server-05886d281d4c9c9b980dc50eaf551f4c3b28b3ef.tar.gz
nextcloud-server-05886d281d4c9c9b980dc50eaf551f4c3b28b3ef.zip
Merge pull request #48597 from nextcloud/fix/fix-email-share-transfer-accross-storages
Fix email share transfer accross storages
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Service/OwnershipTransferService.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php
index 14cbe882245..5a57fae5075 100644
--- a/apps/files/lib/Service/OwnershipTransferService.php
+++ b/apps/files/lib/Service/OwnershipTransferService.php
@@ -420,6 +420,7 @@ class OwnershipTransferService {
foreach ($shares as ['share' => $share, 'suffix' => $suffix]) {
try {
+ $output->writeln('Transfering share ' . $share->getId() . ' of type ' . $share->getShareType(), OutputInterface::VERBOSITY_VERBOSE);
if ($share->getShareType() === IShare::TYPE_USER &&
$share->getSharedWith() === $destinationUid) {
// Unmount the shares before deleting, so we don't try to get the storage later on.
@@ -457,6 +458,7 @@ class OwnershipTransferService {
// Try to get the new ID from the target path and suffix of the share
$node = $rootFolder->get(Filesystem::normalizePath($targetLocation . '/' . $suffix));
$newNodeId = $node->getId();
+ $output->writeln('Had to change node id to ' . $newNodeId, OutputInterface::VERBOSITY_VERY_VERBOSE);
}
$share->setNodeId($newNodeId);