User cant't change advanced sharing settings in "Share link" when password protection is enforced in NC 27

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com 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:

example

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

longer
example
here

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, 20.0.5): 27.1.2
Operating system and version (eg, Ubuntu 20.04): Debian 11.8
Apache or nginx version (eg, Apache 2.4.25): 2.4.57
PHP version (eg, 7.4): 8.1.23

The issue you are facing:
User cant’t change advanced sharing settings in “Share link” when password protection is enforced.

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

Steps to replicate it:

  1. Enable “Enforce password protection” in Administration / Sharing configuration
  2. Create share with “Share link”
  3. Change Advanced settings e.g. “Hide download”
  4. Click “Update share”
  5. A red box appears around the password and the share cannot be saved

The output of your Nextcloud log in Admin > Logging:

NO ERRORS

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

<?php
$CONFIG = array (
  'instanceid' => '********',
  'passwordsalt' => '********',
  'secret' => '********',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.local',
    1 => '192.168.0.100',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'pgsql',
  'version' => '27.1.2.1',
  'overwrite.cli.url' => 'https://nextcloud.local',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '********',
  'installed' => true,
  'htaccess.RewriteBase' => '/',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => '********',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '********',
  'mail_smtpport' => '465',
  'mail_smtpname' => '********',
  'mail_smtppassword' => '********',
  'trashbin_retention_obligation' => 'auto, 30',
  'filelocking.enabled' => 'true',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/run/redis/redis-server.sock',
    'port' => 0,
    'dbindex' => 0,
    'password' => '********',
    'timeout' => 1.5,
  ),
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => 1,
  'logtimezone' => 'Europe/Warsaw',
  'theme' => '',
  'default_phone_region' => 'PL',
  'enable_previews' => true,
  'simpleSignUpLink.shown' => false,
  'skeletondirectory' => '',
  'allow_local_remote_servers' => true,
  'maintenance' => false,
  'versions_retention_obligation' => 'auto, 60',
  'lost_password_link' => 'disabled',
  'auth.bruteforce.protection.enabled' => false,
  'app_install_overwrite' =>
  array (
    0 => 'issuetemplate',
  ),
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);

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

N/A

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.

NO ERRORS