Transfer folder ownership between users gives allways error

I want to transfer one folder from user “User1” to “User2” but gives allways error.

  1. Two users created on ownCloud: “User1” and “User2”
  2. One folder shared with other users from account of user “User1” (owner of the folder shared)
  3. Run command: occ files:transfer-ownership --path="/Shared Folder1" User1 User2
  4. Gives always the error:
    “In Share.php line 173:
    [OCP\Files\NotFoundException]”

Operating system :
Current UCS version is 4.4-4 errata652

ownCloud version:
10.3.2-1

Error with verbose activated:

root@xxxxxxx: /var/www/owncloud # occ -vvv files:transfer-ownership --path="/Shared Folder1" User1 User2
Analysing files of User1 …
95 [============================] 1 sec 20.0 MiB
Collecting all share information for files and folder of User1 …
2 [–>-------------------------] 1 sec 22.0 MiB
In Share.php line 173:

[OCP\Files\NotFoundException]

Exception trace:
at /var/www/owncloud/lib/private/Share20/Share.php:173
OC\Share20\Share->getNode() at /var/www/owncloud/apps/files/lib/Command/TransferOwnership.php:267
OCA\Files\Command\TransferOwnership->OCA\Files\Command{closure}() at n/a:n/a
array_filter() at /var/www/owncloud/apps/files/lib/Command/TransferOwnership.php:269
OCA\Files\Command\TransferOwnership->collectUsersShares() at /var/www/owncloud/apps/files/lib/Command/TransferOwnership.php:165
OCA\Files\Command\TransferOwnership->execute() at /var/www/owncloud/lib/composer/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /var/www/owncloud/lib/composer/symfony/console/Application.php:982
Symfony\Component\Console\Application->doRunCommand() at /var/www/owncloud/lib/composer/symfony/console/Application.php:255
Symfony\Component\Console\Application->doRun() at /var/www/owncloud/lib/composer/symfony/console/Application.php:148
Symfony\Component\Console\Application->run() at /var/www/owncloud/lib/private/Console/Application.php:165
OC\Console\Application->run() at /var/www/owncloud/console.php:106
require_once() at /var/www/owncloud/occ:11

files:transfer-ownership [–path PATH] [–]

Mastodon