-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
occ files:scan
: Argument 1 passed to Icewind\SMB\BasicAuth::__construct()
must be of the type string
, null
given
#26697
Comments
occ files:scan
: Argument 1 passed to Icewind\SMB\BasicAuth::__construct()
must be of the type string
, null
given
please provide the output of |
Here is the result of
The strange thing, is that, for some users, there is no problem (for exemple, my own account), and for others users, they have a message "This folder is unavailable, check the logs or contact your admin". |
Hi, I read #26457 and I applied the proposed fix : i.e. downloaded Nextcloud 21.0.0, replaced "icewind" folder. |
The issue is still present after updating to 21.0.2. |
Is this Issue still valid in NC21.0.3? If not, please close this issue. Thanks! :) |
Hi,
If I can test something, don't hesitate to tell me. Many thanks. |
It should actually be fixed with #26627, no? |
Hi, |
Hi, Same issue here. Nextcloud 21.0.3, debian Buster, apache2 (2.4.38), php7.4, php-fpm, redis, postgresql 11. My list of activated apps:
|
Hi, Many thanks. |
I have no more that issue. It was due (IMHO) to multiple LDAP tenants/auth to access the same CIFS shared folder (with the same options as @Bevito). Changing to a single LDAP base removed that issue. |
@icewind1991 in some cases a username is not set and thus null is passed in Example config:
I suppose following should "fix" it (didn't test), but I am not sure it is just hiding symptoms. diff --git a/apps/files_external/lib/Lib/Backend/SMB.php b/apps/files_external/lib/Lib/Backend/SMB.php
index 5344bf5f78..758e161cd8 100644
--- a/apps/files_external/lib/Lib/Backend/SMB.php
+++ b/apps/files_external/lib/Lib/Backend/SMB.php
@@ -77,7 +77,7 @@ class SMB extends Backend {
$auth = $storage->getAuthMechanism();
if ($auth->getScheme() === AuthMechanism::SCHEME_PASSWORD) {
$smbAuth = new BasicAuth(
- $storage->getBackendOption('user'),
+ $storage->getBackendOption('user') ?? '',
$storage->getBackendOption('domain'),
$storage->getBackendOption('password')
); |
Hi, My Nextcloud instance is authenticated againt an OpenLDAP Database, but the SMB mounts are done against two samba4 domain. |
I can confirm that 20.0.13, 21.05 & 22.0.2 also have this issue. |
Steps to reproduce
Expected behaviour
Tell us what should happen
occ should scan files for selected user.
Actual behaviour
Tell us what happens instead
an error is triggered :
Server configuration
Operating system:
Debian 10.9
Web server:
Server version: Apache/2.4.38 (Debian)
Server built: 2020-08-25T20:08:29
Database:
Server version: 10.3.27-MariaDB-0+deb10u1 Debian 10
PHP version:
PHP 7.3.27-1
deb10u1 (fpm-fcgi) (built: Feb 13 2021 16:31:40)deb10u1, Copyright (c) 1999-2018, by Zend TechnologiesCopyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.27-1
Nextcloud version: (see Nextcloud admin page)
21.0.1
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from 21.0.0
Where did you install Nextcloud from:
Install / update from auto-updater.
Try reinstalling from tar.bz2 from official website.
No errors have been found.
List of activated apps:
Enabled:
Disabled:
Nextcloud configuration:
Are you using external storage, if yes which one: local/smb/sftp/...
smb
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP
LDAP configuration (delete this part if not used)
Client configuration
Browser:
Mozilla Firefox ESR 78.9.0esr (64 bits)
Operating system:
Debian 11
The text was updated successfully, but these errors were encountered: