Filename replaced by short version when using smb external storage

Nextcloud version : 13.0.6.1
Operating system and version : CentOS 7.5.1804
Apache or nginx version : 2.4.6
PHP version : 7.0.27

The issue you are facing: When viewing files from external smb mount, the filenames are not accurate and are instead are instead a shortened version mixed capital alpha-numeric like SD9W08-K instead of the real name SCS1801_Intranet.

Is this the first time you’ve seen this error? : Y (but this is a new install)

Steps to replicate it:

  1. setup external storage smb mount under admin login
  2. regular user accesses mounted folder in web ui
  3. some folders have correct names while others are replaced with name of format 6 alpha-numeric characters followed by a dash (-) and then one alpha-numeric character.

The error doesn’t seem to be triggered by the length of the name since some longer names are correct.

The output of your Nextcloud log in Admin > Logging:
There is nothing inside the log upon access of these folders.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):
1 => ‘server.x.x.x’,
),
‘datadirectory’ => ‘/var/www/data’,
‘overwrite.cli.url’ => ‘http://localhost/nextcloud’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘13.0.6.1’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘nextcloud’,
‘dbpassword’ => ‘secret’,
‘installed’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘overwriteprotocol’ => ‘https’,
‘ldapIgnoreNamingRules’ => false,
‘ldapProviderFactory’ => ‘\OCA\User_LDAP\LDAPProviderFactory’,
‘updater.secret’ => ‘anothersecret’,
‘maintenance’ => false,
‘theme’ => ‘’,
‘loglevel’ => 2,
);

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

I’m really not sure if this is a limitation of the php smb module, Nextcloud, or samba itself. The issue doesn’t appear when using a file manager in an OS by way of samba file sharing, so that could probably be eliminated. The inconsistency makes it even more difficult to diagnose, but I’m hoping someone else has seen the same issue.