Skip to content

[Bug]: 'Invalid storage backend "smb"' when only smbclient is installed #54047

@jplitza

Description

@jplitza

⚠️ This issue respects the following points: ⚠️

Bug description

When having only the smbclient binary installed (not php-smbclient, which should be enough according to the docs), adding an external storage of type smb will fail.

Steps to reproduce

  1. Install Nextcloud
  2. Install files_external app
  3. Install smbclient binary
  4. Configure external storage of type smb (details don't matter)

Expected behavior

The storage is created and a connection is attempted.

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

#52681 introduced "optional" dependencies, but didn't add support for them here:

if ($backend->checkDependencies()) {
// invalid backend
return new DataResponse(
[
'message' => $this->l10n->t('Invalid storage backend "%s"', [
$backend->getIdentifier(),
]),
],
Http::STATUS_UNPROCESSABLE_ENTITY
);
}

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions