Minor Bug in Generating System Rapport

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, 12.0.2): 18.0.4.2
Operating system and version (eg, Ubuntu 17.04): ubuntu 16.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.18
PHP version (eg, 7.1): php 7.4-fpm

The issue you are facing:
When under Settings -> Maintenance -> Support -> Generate System Rapport
It will create a new ${date}.md file and share it. When it creates a random password without a special character it will fail to share the file.

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

Steps to replicate it:

  1. Keep Generating rapports till your system creates a random password without special charcters

The output of your Nextcloud log in Admin > Logging:

Warning	support	Exception: Het wachtwoord moet minimaal één speciaal teken bevatten.
/var/www/nextcloud/lib/private/Share20/Manager.php - line 752:

OC\Share20\Manager->verifyPassword()

/var/www/nextcloud/apps/support/lib/Controller/ApiController.php - line 152:

OC\Share20\Manager->createShare()

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:

OCA\Support\Controller\ApiController->generateSystemReport()

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:

OC\AppFramework\Http\Dispatcher->executeController()

/var/www/nextcloud/lib/private/AppFramework/App.php - line 125:

OC\AppFramework\Http\Dispatcher->dispatch()

/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main()

<<closure>>

OC\AppFramework\Routing\RouteActionHandler->__invoke()

/var/www/nextcloud/lib/private/Route/Router.php - line 299:

call_user_func()

/var/www/nextcloud/lib/base.php - line 1008:

OC\Route\Router->match()

/var/www/nextcloud/index.php - line 38:

OC::handleRequest()

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

{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "cloud.vstans.nl",
        "office.vstans.nl"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "https:\/\/cloud.vstans.nl",
    "dbtype": "mysql",
    "version": "18.0.4.2",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 6379
    },
    "logtimezone": "Europe\/Amsterdam",
    "has_internet_connection": true,
    "check_for_working_webdav": true,
    "installed": true,
    "loglevel": 1,
    "maintenance": false,
    "log_rotate_size": 1485760,
    "mail_smtpmode": "sendmail",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "app.mail.imaplog.enabled": "true",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "enabledPreviewProviders": [
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown",
        "OC\\Preview\\NFO"
    ],
    "updater.release.channel": "stable",
    "theme": "",
    "trashbin_retention_obligation": "auto, 365",
    "mail_smtpsecure": "tls",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mysql.utf8mb4": true,
    "app_install_overwrite": [
        "admin_notifications",
        "printer"
    ],
    "updater.secret": "***REMOVED SENSITIVE VALUE***"
}


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

PASTE HERE

I don’t know how the password is generated and if I can control it.