]> source.dussan.org Git - nextcloud-server.git/commit
fix(files): Also restore shares after ownership transfer for object storage 44922/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Wed, 17 Apr 2024 20:27:32 +0000 (22:27 +0200)
committerBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Thu, 18 Apr 2024 15:40:36 +0000 (17:40 +0200)
commit9cdbff8ec85e80b6aa6a4653ef510f1b17709785
tree3aa85b300ff75dd12ed64df559762d79f9b90082
parent0da51f5d28b2b31bc977acd5a5605a1eef3af953
fix(files): Also restore shares after ownership transfer for object storage

When a file is moved between different storages then the file id is not (always) preserved.
This means the file id has to be adjusted for all shares.

So in case the file id does not exist anymore we try to find the new file id based on the
target path of the transfer and the path suffix of the share.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files/lib/Service/OwnershipTransferService.php