Operation failed only 1st Level of Federated Reshare visible

Support intro

Nextcloud version : 15.0.05
Operating system and version : Ubuntu 18.04.2 LTS
Apache or nginx version : nginx 1.14.0
PHP version : 7.2.3

An reshared Federal Share (from other Nextcloud Server) is working as expected, the other options are fine. As soon as a Federated Share is reshared to a local user, the user get the notification and can access the 1st level of the reshared Share. The other folders aren´t able to get in. No read permission. If i´m in the first level, i can download the whole folder with subfolders and files.

Neither the webapp, Android or or Desktop App is cabale to sync or open.

Is this the first time you’ve seen this error: Y

Steps to replicate it:

  1. Federate Share from Server A to user on this server
  2. Reshare this Fedarated Share to a other local user
  3. only See the Frist Level, Subfolders not accessible

The output of your Nextcloud log in Admin > Logging:

{"reqId":"E4vlSJYqlQ0qanZ2Xdk9","level":4,"time":"2019-03-04T11:06:52+00:00","remoteAddr":"123.45.67.89","user":"username","app":"webdav","method":"PROPFIND",
"url":"\/remote.php\/dav\/files\/username\/Testshare",

"message":{"Exception":"OCA\\DAV\\Connector\\Sabre\\Exception\\Forbidden",
"Message":"No read permissions","Code":0,
"Trace":[{"file":"\/var\/www\/nextcloud\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/TagsPlugin.php","line":224,"function":"getChildren","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":[]}
,{"function":"handleGetProperties","class":"OCA\\DAV\\Connector\\Sabre\\TagsPlugin","type":"->","args":
[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"}]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":
[[{"__class__":"OCA\\DAV\\Connector\\Sabre\\TagsPlugin"},"handleGetProperties"],[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"}]]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1059,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":
["propFind",[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"}]]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":981,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->","args":
[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"}]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1666,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->","args":
["files\/username\/Testshare",["{DAV:}getlastmodified","{DAV:}getetag","{DAV:}getcontenttype","
{DAV:}resourcetype","{http:\/\/owncloud.org\/ns}fileid","{http:\/\/owncloud.org\/ns}permissions","
{http:\/\/owncloud.org\/ns}size","{DAV:}getcontentlength","{http:\/\/nextcloud.org\/ns}has-preview","
{http:\/\/nextcloud.org\/ns}mount-type","{http:\/\/nextcloud.org\/ns}is-encrypted","{http:\/\/open-collaboration-services.org\/ns}share-permissions","
{http:\/\/owncloud.org\/ns}tags","{http:\/\/owncloud.org\/ns}favorite","{http:\/\/owncloud.org\/ns}comments-unread","{http:\/\/owncloud.org\/ns}owner-id",
"{http:\/\/owncloud.org\/ns}owner-display-name","{http:\/\/owncloud.org\/ns}share-types"],1]},{"file":"\/var\/www\/nextcloud\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php",
"line":355,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Generator"},false]},{"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->",
"args":[{"absoluteUrl":"https:\/\/subdomain.domain.tld\/remote.php\/dav\/files\/username\/Testshare","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPropFind"],
[{"absoluteUrl":"https:\/\/subdomain.domain.tld\/remote.php\/dav\/files\/username\/Testshare","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PROPFIND",
[{"absoluteUrl":"https:\/\/subdomain.domain.tld\/remote.php\/dav\/files\/username\/Testshare","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[
{"absoluteUrl":"https:\/\/subdomain.domain.tld\/remote.php\/dav\/files\/username\/Testshare","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/apps\/dav\/lib\/Server.php","line":301,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},
{"file":"\/var\/www\/nextcloud\/nextcloud\/remote.php","line":163,"args":["\/var\/www\/nextcloud\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],
"File":"\/var\/www\/nextcloud\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/Directory.php","Line":263,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) 
Gecko\/20100101 Firefox\/65.0","version":"15.0.5.3"}


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

$CONFIG = array (
  'instanceid' => 'sdhf4f8f23fnw232',
  'passwordsalt' => 'CGHASUIve3FRtuz342hf2fgt32tzfh32r3',
  'secret' => 'jkfksefhz78347t43jgnrgmhz3tjop34twtr',
  'trusted_domains' =>
  array (
    0 => 'subdomain.domain.tld',
  ),
  'datadirectory' => '/var/www/nextcloud/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '15.0.5.3',
  'overwrite.cli.url' => 'https://subdomain.domain.tld',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud__dbuser',
  'dbpassword' => 'nextcloud_db_pass',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'domain.tld',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mail.domain.tld',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'nextcloud@domain.tld',
  'mail_smtppassword' => SMTPPASS',
  'mail_smtpsecure' => 'tls',
  'theme' => '',
  'loglevel' => 2,
);

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

[04/Mar/2019:13:08:27 +0100] "PROPFIND /remote.php/dav/files/username/ HTTP/2.0" 207 13587 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0" subdomain.domain.tld 0.126 -