Occ files:transfer-ownership - External shares

Nextcloud version (eg, 12.0.2): 15.0.12
Operating system and version (eg, Ubuntu 17.04): CentOS Linux release 7.7.1908 (Core)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.6 (CentOS)
PHP version (eg, 7.1): PHP 7.0.33

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Transfer a folder to another user
  2. Folder transfers, but shares are lost
  3. Transfer it back, shares are restored

The output of your Nextcloud log in Admin > Logging:

[no app in context] Error: Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "ocs.provisioning_api.AppsController.disable" as such route does not exist. at <<closure>>

 0. /var/www/html/nextcloud/lib/private/Route/Router.php line 337
    generate("ocs.provisionin ... e", {app: "nextcloud_announcements"}, 1)
 1. /var/www/html/nextcloud/lib/private/Route/CachingRouter.php line 60
    generate("ocs.provisionin ... e", {app: "nextcloud_announcements"}, false)
 2. /var/www/html/nextcloud/lib/private/URLGenerator.php line 95
    generate("ocs.provisionin ... e", {app: "nextcloud_announcements"}, false)
 3. /var/www/html/nextcloud/apps/nextcloud_announcements/lib/Notification/Notifier.php line 89
    linkToOCSRouteAbsolute("provisioning_api.AppsController.disable", {app: "nextcloud_announcements"})
 4. /var/www/html/nextcloud/lib/private/Notification/Manager.php line 226
    prepare(OC\Notification\Notification {}, "en_GB")
 5. /var/www/html/nextcloud/apps/notifications/lib/Controller/EndpointController.php line 92
    prepare(OC\Notification\Notification {}, "en_GB")
 6. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166
    listNotifications("v2")
 7. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    executeController(OCA\Notification ... {}, "listNotifications")
 8. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 118
    dispatch(OCA\Notification ... {}, "listNotifications")
 9. /var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    main("OCA\\Notificati ... r", "listNotifications", OC\AppFramework\ ... {}, {apiVersion: "v2 ... "})
10. <<closure>>
    __invoke({apiVersion: "v2 ... "})
11. /var/www/html/nextcloud/lib/private/Route/Router.php line 297
    call_user_func(OC\AppFramework\ ... {}, {apiVersion: "v2 ... "})
12. /var/www/html/nextcloud/ocs/v1.php line 82
    match("/ocsapp/apps/no ... s")
13. /var/www/html/nextcloud/ocs/v2.php line 24
    require_once("/var/www/html/nextcloud/ocs/v1.php")

GET /ocs/v2.php/apps/notifications/api/v2/notifications
from 62.172.35.98 by cawadmin at 2020-03-09T12:48:37+00:00

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ocp6bpkvm53j',
  'passwordsalt' => '******',
  'secret' => '*****',
  'trusted_domains' =>
  array (
    0 => '192.168.2.71',
    1 => '*****',
  ),
  'datadirectory' => '/home/nextcloud/data',
  'overwrite.cli.url' => 'http://192.168.2.71/nextcloud',
  'dbtype' => 'mysql',
  'version' => '15.0.12.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextclouduser',
  'dbpassword' => '*****',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'mail_from_address' => 'cawsecure',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_domain' => 'caw.ac.uk',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'mail_smtphost' => '123.123.123.123',
  'mail_smtpport' => '25',
  'skeletondirectory' => '',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.secret' => '*****',
);

The output of your Apache/nginx/system log in /var/log/____:

[Sun Mar 08 03:40:01.685129 2020] [lbmethod_heartbeat:notice] [pid 211665] AH02282: No slotmem from mod_heartmonitor
[Sun Mar 08 03:40:01.739483 2020] [mpm_prefork:notice] [pid 211665] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33 configured -- resuming normal operations
[Sun Mar 08 03:40:01.739504 2020] [core:notice] [pid 211665] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Hi,

First time poster, long time user!

We are starting to come across people who leave our organisation with folders shared with others, be it external by link or internal by login.

We try and use the occ command to transfer ownership, but it doesn’t transfer the share info, just leaves it unshared and access forbidden on the other side. If we then move the folder back to the original user, all shares and links are restored.

Is this how it should work, or should shares move with the occ command?

Thanks

James