Virtual files download error with special characters

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): 24.0.3
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): nginx 1.23.0
PHP version (eg, 7.4): php8.1

The issue you are facing:
When trying to double click a virtual file, it does not download it, when the file is in a folder that got a special character (e.g. “Büro” > “management.xlsx”)

Steps to replicate it:

  1. MacOS Sync with virtual files
  2. Open a file where the patch contains a special character
  3. e.g. “Büro” > “management.xlsx” or “Buero” > “büro.xlsx”

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

<?php
$CONFIG = array (
  'instanceid' => 'oc4bggribkxe',
  'passwordsalt' => 'xxxxx',
  'secret' => 'xxxxx',
  'trusted_domains' =>
  array (
    0 => 'cloud.xxxxxx',
    1 => '10.0.0.2',
  ),
  'datadirectory' => '/mnt/ncdata/data',
  'dbtype' => 'mysql',
  'version' => '24.0.3.2',
  'overwrite.cli.url' => 'https://xxxxxx',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouddbuser',
  'dbpassword' => 'xxxxxx',
  'installed' => true,
  'activity_expire_days' => 30,
  'allow_local_remote_servers' => true,
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' =>
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'cron_log' => true,
  'default_phone_region' => 'DE',
  'default_language' => 'de',
  'default_locale' => 'de_DE',
  'defaultapp' => 'files,dashboard',
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\Movie',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
  ),
  'filesystem_check_changes' => 0,
  'filelocking.enabled' => 'true',
  'htaccess.RewriteBase' => '/',
  'integrity.check.disabled' => false,
  'knowledgebaseenabled' => false,
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '2',
  'logtimezone' => 'Europe/Berlin',
  'log_rotate_size' => '104857600',
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'overwriteprotocol' => 'https',
  'preview_max_x' => 1024,
  'preview_max_y' => 768,
  'preview_max_scale_factor' => 1,
  'profile.enabled' => false,
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 1,
  ),
  'quota_include_external_storage' => false,
  'sharing.enable_share_accept' => false,
  'skeletondirectory' => '',
  'theme' => '',
  'trashbin_retention_obligation' => 'auto, 7',
  'updater.release.channel' => 'stable',
  'mail_smtpmode' => 'sendmail',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'cloud',
  'mail_domain' => 'xxxxxx',
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '::1',
  ),
  'remember_login_cookie_lifetime' => '',
  'versions_retention_obligation' => 'auto, 365',
  'simpleSignUpLink.shown' => false,
  'upgrade.disable-web' => true,
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
    0 => '123_ADMIN',
  ),
  'app_install_overwrite' =>
  array (
    0 => 'documentserver_community',
  ),
);

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

no errors

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”:“1LZXQsdbcl15piwylOyA”,“level”:3,“time”:“2022-08-20T12:02:05+02:00”,“remoteAddr”:“”,“user”:“–”,“app”:“documentserver_community”,“method”:“”,“url”:“–”,“message”:“Error while applying changes for document 938333469”,“userAgent”:“–”,“version”:“24.0.3.2”,“exception”:{“Exception”:“OCA\DocumentServer\Document\DocumentConversionException”,“Message”:“Uncaught TypeError: Cannot read property ‘nC’ of undefined\nDoctRenderer:<error index="6" />\nUncaught TypeError: Cannot read property ‘nC’ of undefined\nDoctRenderer:<error index="5" />\nUncaught TypeError: Cannot read property ‘nC’ of undefined\nDoctRenderer:<error index="4" />\nUncaught TypeError: Cannot read property ‘nC’ of undefined\nDoctRenderer:<error index="3" />\nUncaught TypeError: Cannot read property ‘nC’ of undefined\nDoctRenderer:<error index="2" />\nUncaught TypeError: Cannot read property ‘nC’ of undefined\nDoctRenderer:<error index="1" />\nUncaught TypeError: Cannot read property ‘nC’ of undefined\nDoctRenderer:<error index="0" />\n”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/apps/documentserver_community/lib/DocumentConverter.php”,“line”:125,“function”:“run”,“class”:“OCA\DocumentServer\Document\ConverterBinary”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/documentserver_community/lib/DocumentConverter.php”,“line”:80,“function”:“runCommand”,“class”:“OCA\DocumentServer\DocumentConverter”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php”,“line”:156,“function”:“saveChanges”,“class”:“OCA\DocumentServer\DocumentConverter”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/documentserver_community/lib/LocalAppData.php”,“line”:102,“function”:“OCA\DocumentServer\Document\{closure}”,“class”:“OCA\DocumentServer\Document\DocumentStore”,“type”:“->”,“args”:[“*** sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php”,“line”:176,“function”:“getReadWriteLocalPath”,“class”:“OCA\DocumentServer\LocalAppData”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/documentserver_community/lib/Document/SaveHandler.php”,“line”:58,“function”:“saveChanges”,“class”:“OCA\DocumentServer\Document\DocumentStore”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/documentserver_community/lib/BackgroundJob/Cleanup.php”,“line”:71,“function”:“flushChanges”,“class”:“OCA\DocumentServer\Document\SaveHandler”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/public/BackgroundJob/Job.php”,“line”:79,“function”:“run”,“class”:“OCA\DocumentServer\BackgroundJob\Cleanup”,“type”:“->”},{“file”:“/var/www/nextcloud/cron.php”,“line”:151,“function”:“execute”,“class”:“OCP\BackgroundJob\Job”,“type”:“->”}],“File”:“/var/www/nextcloud/apps/documentserver_community/lib/Document/ConverterBinary.php”,“Line”:66,“message”:“Error while applying changes for document 938333469”,“CustomMessage”:“Error while applying changes for document 938333469”},“id”:“6300b14299341”}