nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.13k stars 3.94k forks source link

[Bug]: Cannot disconnect old external storage connection (SFTP; upgrade from 25.0 to 27.1) #40765

Open niklas-englert opened 9 months ago

niklas-englert commented 9 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

I cannot remove an old connection I created to test issue #37266 in Nextcloud 25.0. The configuration is missing and I just have a useless save button as the connection isn't working anymore. image

Steps to reproduce

This is an issue following issue #37266. Reproduce the steps from there in Nextcolud 25.0 and upgrade to 27.1.

Expected behavior

There should be some intuitive way to remove the connection.

Installation method

None

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

ccsric commented 9 months ago

Have same issue :

Oct  5 11:04:50 Nextcloud[1183230]: {"reqId":"PqtSjvFGLVNzwYlWFaIv","level":3,"time":"2023-10-05T07:04:50+00:00","remoteAddr":"172.18.0.2","user":"bob@gmail.com","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/bob@gmail.com/","message":"{\"Exception\":\"Error\",\"Message\":\"Call to a member function getPermissions() on array\",\"Code\":0,\"Trace\":[{\"file\":\"/opt/nextcloud/lib/private/Files/Node/Folder.php\",\"line\":102,\"function\":\"getDirectoryContent\",\"class\":\"OC\\\\Files\\\\View\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php\",\"line\":262,\"function\":\"getDirectoryListing\",\"class\":\"OC\\\\Files\\\\Node\\\\Folder\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/apps/dav/lib/Connector/Sabre/TagsPlugin.php\",\"line\":227,\"function\":\"getChildren\",\"class\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php\",\"line\":89,\"function\":\"handleGetProperties\",\"class\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\TagsPlugin\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":1052,\"function\":\"emit\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":984,\"function\":\"getPropertiesByNode\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":1662,\"function\":\"getPropertiesIteratorForPath\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":1647,\"function\":\"writeMultiStatus\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php\",\"line\":346,\"function\":\"generateMultiStatus\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php\",\"line\":89,\"function\":\"httpPropFind\",\"class\":\"Sabre\\\\DAV\\\\CorePlugin\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":472,\"function\":\"emit\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":253,\"function\":\"invokeMethod\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":321,\"function\":\"start\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/apps/dav/lib/Server.php\",\"line\":365,\"function\":\"exec\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/apps/dav/appinfo/v2/remote.php\",\"line\":35,\"function\":\"exec\",\"class\":\"OCA\\\\DAV\\\\Server\",\"type\":\"->\"},{\"file\":\"/opt/nextcloud/remote.php\",\"line\":172,\"args\":[\"/opt/nextcloud/apps/dav/appinfo/v2/remote.php\"],\"function\":\"require_once\"}],\"File\":\"/opt/nextcloud/lib/private/Files/View.php\",\"Line\":1505,\"message\":\"Call to a member function getPermissions() on array\",\"exception\":{},\"CustomMessage\":\"Call to a member function getPermissions() on array\"}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0","version":"27.1.1.0"}
joshtrichards commented 8 months ago

You should be able to remove it there. Not sure why the dots menu isn't showing. Anything interesting in your browser console when you load that page?

As a workaround, you can manage mounts from the command line, ncluding deleting that one:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#files-external