Can't have a modify rights on public shared file (or folder)

Nextcloud version: 22.2.0
Operating system and version: Debian buster
Nginx version : 1.14.2
PHP version: 8.0.28

I’ve got a multi-instance nextcloud. One of my instance have got an issue about public sharing.
Users can’t public share files and folders with modify rights.

If they check the modify box on public share option, when you return back immediatly to the list of the sharing options, modify box is unchecked.

Only this instance has got this problem. This one and others have the same php configuration.

I didn’t seen any message about this in this instance log file (log_level = 0).

This problem has appeared for few months, and I’ve upgraded for new version since then.

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

<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/home/www/data/…/nuages/instances/myinstance/nextcloud/apps/',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/home/www/data/…/nuages/instances/myinstance/common/',
      'url' => '/common-apps',
      'writable' => false,
    ),
    2 => 
    array (
      'path' => '/home/www/data/…/nuages/instances/myinstance/apps/',
      'url' => '/instance-apps',
      'writable' => true,
    ),
  ),
  'datadirectory' => '/home/www/data/…/nuages/instances/myinstance/data',
  'dbhost' => '/run/postgresql',
  'dbname' => 'php_nuage_myinstance',
  'dbpassword' => '',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbtype' => 'pgsql',
  'dbuser' => 'php_nuages',
  'default_language' => 'fr',
  'filelocking.enabled' => 'true',
  'installed' => true,
  'instanceid' => 'id',
  'log_rotate_size' => 52428800,
  'log_type' => 'file',
  'logfile' => '/home/www/log/org/myinstance/nuage/nextcloud.log',
  'loglevel' => 0,
  'mail_domain' => 'myinstance.org',
  'mail_from_address' => 'mail',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpmode' => 'smtp',
  'maintenance' => false,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => 'OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'overwrite.cli.url' => 'https://nuage.myinstance.org',
  'passwordsalt' => 'andvinegar',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'secret' => 'this_is_secret',
  'skeletondirectory' => '',
  'theme' => '',
  'trusted_domains' => 
  array (
    0 => 'nuage.myinstance.org',
  ),
  'version' => '22.2.0.2',
);

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

{"reqId":"ozc2xxeS9vnjWQOcLIws","level":0,"time":"2023-02-22T12:12:44+00:00","remoteAddr":"86.76.4.44","user":"admin","app":"files_sharing","method":"PUT","url":"/ocs/v2.php/apps/files_shari
ng/api/v1/shares/390","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64
; rv:109.0) Gecko/20100101 Firefox/109.0","version":"22.2.0.2"}

Where can I continue to investigate about this issue?

Thanks for your help.

Have you checked / compared the Nextcloud Web GUI Administration → Sharing?
You can use this link change to your instances: https://cloud.server.tld/settings/admin/sharing

Nextcloud 22 and Nextcloud 23 are unsupported. Please upgrade your Nextcloud installation. Maybe it also can solve your problem. https://nextcloud.com/de/changelog

1 Like

Yes. I forgot to say I’d already checked the sharing options in administration settings.

Oups. I had an error on my php version.
php version: 8.0.28