Skip to content

[files_external] Global credentials (user entered) not working #18195

Description

@wiswedel

Steps to reproduce

  1. Configure one or more external storages with auth method Global credentials, user entered (no matter if on admin- or user-side external storage config page)
  2. enter global credentials on user external storage config page and save
  3. hit the checkmark behind the external storage

Expected behaviour

green checkmark, storage connects

Actual behaviour

red exclamation mark, storage doesn't connect

Log when trying to connect SMB/CIFS

{
"reqId": "i9aJHt3OkFpI1ILuyEU8",
"level": 3,
"time": "December 02, 2019 21:23:17",
"remoteAddr": "####################",
"user": "####################",
"app": "PHP",
"method": "PUT",
"url": "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/apps/files_external/userglobalstorages/4",
"message": "Undefined index: user at /var/www/nextcloudLatest/apps/files_external/lib/Lib/Auth/Password/UserGlobalAuth.php#55",
"userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0",
"version": "17.0.1.1"
}
{
"reqId": "i9aJHt3OkFpI1ILuyEU8",
"level": 3,
"time": "December 02, 2019 21:23:17",
"remoteAddr": "####################",
"user": "####################",
"app": "PHP",
"method": "PUT",
"url": "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/apps/files_external/userglobalstorages/4",
"message": "Undefined index: password at /var/www/nextcloudLatest/apps/files_external/lib/Lib/Auth/Password/UserGlobalAuth.php#56",
"userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0",
"version": "17.0.1.1"
}

Server configuration

Operating system: Linux 4.15.0-69-generic #78-Ubuntu SMP Wed Nov 6 11:30:24 UTC 2019 x86_64

Webserver: Apache/2.4.41 (Ubuntu) (apache2handler)

Database: mysql 10.4.10

PHP version: 7.3.12-1+ubuntu18.04.1+deb.sury.org+1

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, apache2handler, mysqlnd, PDO, xml, apcu, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, intl, json, ldap, exif, mysqli, pdo_mysql, apc, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Phar, inotify, libsmbclient, Zend OPcache

Nextcloud version: 17.0.1 - 17.0.1.1

files_external: 1.8.0

Side notes

  1. SMB/CIFS tested after applying https://github.com/nextcloud/server/pull/17873/files
  2. happens also when connecting other types (e.g. Nextcloud) - but all throw different logs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions