Skip to content
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

Delete files from external storage broke between 19.0.1 and 19.0.3 #22824

Closed
MaxBo opened this issue Sep 12, 2020 · 1 comment
Closed

Delete files from external storage broke between 19.0.1 and 19.0.3 #22824

MaxBo opened this issue Sep 12, 2020 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@MaxBo
Copy link

MaxBo commented Sep 12, 2020

Steps to reproduce

Try to remove a file from a folder on an external storage

Maybe caused by
#21983

Expected behaviour

The file should be moved to the trashbin

Actual behaviour

The file is deleted, but the request returns the error
[webdav] Fatal: Error: Call to a member function getId() on array at <>
and the DELETE request returns a 500 Server Error.

Server configuration detail

Operating system: Linux 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64

Webserver: nginx/1.18.0 (fpm-fcgi)

Database: pgsql PostgreSQL 12.1 (Debian 12.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit

PHP version:

7.3.20
Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, pdo_sqlite, session, posix, readline, Reflection, standard, SimpleXML, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, cgi-fcgi, apcu, bcmath, exif, gd, gmp, imagick, intl, ldap, mcrypt, memcached, mysqli, pcntl, pdo_mysql, pdo_pgsql, pgsql, redis, sodium, zip, Zend OPcache

Nextcloud version: 19.0.3 - 19.0.3.1

In 19.0.1 it still works.
In 19.0.3 it's broken

Updated from an older Nextcloud/ownCloud or fresh install: 19.0.1 - 19.0.1.1

Where did you install Nextcloud from: Docker container

Signing status

Array
(
)

List of activated apps
Enabled:
 - accessibility: 1.5.0
 - activity: 2.12.0
 - bruteforcesettings: 2.0.1
 - calendar: 2.0.4
 - cloud_federation_api: 1.2.0
 - comments: 1.9.0
 - contacts: 3.3.0
 - contactsinteraction: 1.0.0
 - dav: 1.15.0
 - deck: 1.0.5
 - encryption: 2.7.0
 - external: 3.6.0
 - federatedfilesharing: 1.9.0
 - federation: 1.9.0
 - files: 1.14.0
 - files_accesscontrol: 1.9.1
 - files_downloadactivity: 1.8.0
 - files_external: 1.10.0
 - files_pdfviewer: 1.8.0
 - files_rightclick: 0.16.0
 - files_sharing: 1.11.0
 - files_trashbin: 1.9.0
 - files_versions: 1.12.0
 - files_videoplayer: 1.8.0
 - firstrunwizard: 2.8.0
 - issuetemplate: 0.7.0
 - keeweb: 0.6.2
 - logreader: 2.4.0
 - lookup_server_connector: 1.7.0
 - notes: 3.6.4
 - notifications: 2.7.0
 - oauth2: 1.7.0
 - password_policy: 1.9.1
 - photos: 1.1.0
 - polls: 1.4.3
 - privacy: 1.3.0
 - provisioning_api: 1.9.0
 - recommendations: 0.7.0
 - serverinfo: 1.9.0
 - settings: 1.1.0
 - sharebymail: 1.9.0
 - spreed: 9.0.3
 - support: 1.2.1
 - survey_client: 1.7.0
 - systemtags: 1.9.0
 - talk_simple_poll: 1.1.1
 - text: 3.0.1
 - theming: 1.10.0
 - twofactor_backupcodes: 1.8.0
 - updatenotification: 1.9.0
 - user_external: 0.10.0
 - viewer: 1.3.0
 - workflowengine: 2.1.0
Disabled:
 - admin_audit
 - analytics
 - dashboardcharts
 - drawio
 - files_automatedtagging
 - files_retention
 - files_texteditor
 - maps
 - nextcloud_announcements
 - onlyoffice
 - user_ldap

Configuration (config/config.php)
{
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "tempdirectory": "\/data\/tmp",
    "supportedDatabases": [
        "sqlite",
        "mysql",
        "pgsql"
    ],
    "memcache.local": "\\OC\\Memcache\\APCu",
    "apps_paths": [
        {
            "path": "\/opt\/nextcloud\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/data\/userapps",
            "url": "\/userapps",
            "writable": true
        }
    ],
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "localhost:8887",
        "projektcheck.ggr-planung.de:8887",
        "cloud.ggr-planung.de"
    ],
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "http:\/\/localhost:8887\/",
    "overwritehost": "cloud.ggr-planung.de",
    "overwriteprotocol": "https",
    "dbtype": "pgsql",
    "version": "19.0.3.1",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "theme": "",
    "log_type": "file",
    "logfile": "nextcloud.log",
    "logfilemode": 416,
    "loglevel": "2",
    "maintenance": false,
    "mail_smtpmode": "sendmail",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpsecure": "ssl",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "updater.release.channel": "stable",
    "htaccess.RewriteBase": "\/",
    "integrity.check.disabled": false,
    "csrf.optout": [
        "\/^WebDAVFS\/",
        "\/^Microsoft-WebDAV-MiniRedir\/",
        "\/KeeWeb\\\/\\d[.]\\d[.]\\d\/"
    ],
    "app_install_overwrite": [
        "calendar",
        "keeweb"
    ],
    "mail_sendmailmode": "pipe",
    "trashbin_retention_obligation": "auto, 30"
}

Are you using external storage, if yes which one: Local

Are you using encryption:

Are you using an external user-backend, if yes which one: Webdav/...

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0

Operating system:

Logs

Web server error log

Nextcloud log
[webdav] Fatal: Error: Call to a member function getId() on array at <<closure>>

 0. /opt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php line 180
    OC\Files\Cache\Cache->remove("GGR.kdbx")
 1. /opt/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php line 180
    OC\Files\Cache\Wrapper\CacheWrapper->remove("GGR.kdbx")
 2. /opt/nextcloud/lib/private/Files/Cache/Updater.php line 160
    OC\Files\Cache\Wrapper\CacheWrapper->remove("GGR.kdbx")
 3. /opt/nextcloud/lib/private/Files/View.php line 329
    OC\Files\Cache\Updater->remove("GGR.kdbx")
 4. /opt/nextcloud/lib/private/Files/View.php line 1173
    OC\Files\View->removeUpdate(OCA\FilesAccessC ... }}, "GGR.kdbx")
 5. /opt/nextcloud/lib/private/Files/View.php line 718
    OC\Files\View->basicOperation("unlink", "/Keepass/GGR.kdbx", ["delete"])
 6. /opt/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 458
    OC\Files\View->unlink("/Keepass/GGR.kdbx")
 7. /opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 183
    OCA\DAV\Connector\Sabre\File->delete()
 8. /opt/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 295
    Sabre\DAV\Tree->delete("files/MB/Keepass/GGR.kdbx")
 9. /opt/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpDelete(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
10. /opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 474
    Sabre\DAV\Server->emit("method:DELETE", [Sabre\HTTP\Requ ... }])
11. /opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 251
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
12. /opt/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 319
    Sabre\DAV\Server->start()
13. /opt/nextcloud/apps/dav/lib/Server.php line 320
    Sabre\DAV\Server->exec()
14. /opt/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
15. /opt/nextcloud/remote.php line 167
    require_once("/opt/nextcloud/ ... p")

DELETE /remote.php/dav/files/MB/Keepass/GGR.kdbx
from 89.12.70.209 by MB at 2020-09-12T09:51:42+00:00
Browser log

Request:
DELETE https://mycloudserver.com/remote.php/dav/files/MB/Keepass/GGR.kdbx

Answer:
[HTTP/1.1 500 Internal Server Error 286ms

Detail:

    <?xml version="1.0" encoding="utf-8"?>
    <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
      <s:exception>Error</s:exception>
      <s:message>Call to a member function getId() on array</s:message>
    </d:error>
@MaxBo MaxBo added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Sep 12, 2020
@szaimen
Copy link
Contributor

szaimen commented Jun 11, 2021

As I cannot reproduce the original issue anymore, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen. The latest version can be seen by checking https://nextcloud.com/install/#install-clients and https://nextcloud.com/install/#instructions-server respectively.

@szaimen szaimen closed this as completed Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

2 participants