Sharing details for subfolders/files aren't shown for the owner when the parent folder is shared

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 13.0.2
Operating system and version (eg, Ubuntu 17.04): CentOS Linux release 7.6.1810 (Core)
Apache or nginx version (eg, Apache 2.4.25): httpd.x86_64 2.4.6-88.el7.centos
PHP version (eg, 7.1): PHP Version => 7.0.33

The issue you are facing:
When a user shares a folder, it shows the sharing details for the parent folder, but not all of the subfolders/files and none of the 2nd level of subfolders/files, or any file folder that is added to the parent folder after it has been shared. The subfolders are recursively shared correctly but the user doesn’t see this in their view. The user it is shared with can see that all the subfolders/files are shared correctly in their view. The shares are working as expected, but the share details do not show up for the owner.

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

Steps to replicate it:

  1. Share a folder to another user that has subfolders and files.
  2. Check the share details, ex, the folder has the sharing chain icon or view the details to see who it is shared with.
  3. All the subfolders/files are shared, but the owner doesn’t see that they are because it doesn’t show that the files have been shared.
  4. The user that the folders have been shared to will have access to the files the way they expect.

The output of your Nextcloud log in Admin > Logging:

No logs pertaining to this issue.

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

$CONFIG = array (
  'instanceid' => 'ocnnlaf1h91x',
  'passwordsalt' => '*******************',
  'secret' => '*************',
  'trusted_domains' =>
  array (
    0 => '',
    1 => 'amoeba',
  'datadirectory' => '/var/www/html/nextcloud/data',
  'overwrite.cli.url' => '',
  'preview_libreoffice_path' => '/bin/libreoffice',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => '**************',
  'dbpassword' => '********',
  'logtimezone' => 'UTC',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => '***********',
  'mail_smtpmode' => 'php',
  'mail_domain' => '',
  'log_rotate_size' => '104857600',
  'ldapIgnoreNamingRules' => false,
  'appstore.experimental.enabled' => true,
  'maintenance' => false,
  'loglevel' => 2,
  'ldapUserCleanupInterval' => 20,
  'updatechecker' => false,
  'trashbin_retention_obligation' => 'auto',
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',

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