Guest Account Reset Password Error

[/details]

Nextcloud version (eg, 20.0.5): 24.0.4
Operating system and version (eg, Ubuntu 20.04): 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.4): 8.0.22

The issue you are facing:
When I create a share for a guest and let the guest try a login, the guest asks to reinitialize the password. But reinitialization results in the “Request failed with status code 405” error.

If I want to set a password as admin, the error message is “An error occurred during the request. Unable to proceed.”

If I want to delete the guest user, the same error message “An error occurred during the request. Unable to proceed.”

Is this the first time you’ve seen this error? (Y/N): N (tried it a few times)

Steps to replicate it:

  1. create a share with an email for a guest
  2. reinitialize password for guest account
  3. delete guest account

The output of your Nextcloud log in Admin > Logging:
{"reqId":"YwUFnu9@gbVJx1FaGUWroQAAAA4","level":2,"time":"2022-08-23T16:51:55+00:00","remoteAddr":"81.221.145.58","user":"--","app":"no app in context","method":"POST","url":"/index.php/login","message":"Login failed: xxxx.yyyy@gmail.com (Remote IP: 81.221.145.58)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 Edg/104.0.1293.63","version":"24.0.4.1","data":[],"id":"630507098a520"}

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

PASTE HERE
<?php
$CONFIG = array (
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '',
  ),
  'datadirectory' => '/var/www/vhosts/...',
  'dbtype' => 'mysql',
  'version' => '24.0.4.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud_...',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncuser_...',
  'dbpassword' => '...',
  'installed' => true,
  'instanceid' => 'ocj6475ltb5q',
  'default_language' => '...',
  'force_locale' => '...',
  'default_phone_region' => '...',
  'skeletondirectory' => '',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '...',
  'mail_domain' => '...',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '...',
  'mail_smtpport' => '465',
  'mail_smtpname' => '...',
  'mail_smtppassword' => '...',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 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.

PASTE HERE
[Tue Aug 23 18:52:52.355288 2022] [:error] [pid 171453:tid 140101287929600] [client 81.221.145.58:0] [client 81.221.145.58] ModSecurity: Access denied with code 403 (phase 2). Match of "pmFromFile userdata_wl_extensions" against "TX:extension" required. [file "/etc/apache2/modsecurity.d/rules/comodo_free/10_HTTP_HTTP.conf"] [line "27"] [id "210730"] [rev "4"] [msg "COMODO WAF: URL file extension is restricted by policy||domain|F|2"] [data ".yyyyy@gmail.com"] [severity "CRITICAL"] [tag "CWAF"] [tag "HTTP"] [hostname "hostname"] [uri "/ocs/v2.php/cloud/users/xxxx.yyyy@gmail.com"] [unique_id "YwUF5O9@gbVJx1FaGUWr0gAAAA0"]