Skip to content

[Bug]: Maps - WebDAV access: Call to undefined method OC\DB\QueryBuilder\QueryBuilder::execute() #58756

@Morg42

Description

@Morg42

⚠️ This issue respects the following points: ⚠️

Bug description

Accessing NextCloud 33.0.0 via WebDAV (Joplin Sync) creates ErrorCall to undefined method OC\DB\QueryBuilder\QueryBuilder::execute() for every access. This occurs since the update to 33.0.0.

I can not rule out Joplin as the culprit, but since this happens from multiple devices (MacOS, iOS, Windows) and Joplin hasn't been updated recently on all devices, I suppose the issue lies with NextCloud. Additionally, there are reports of similar errors using other clients (e.g. privacy app).

Steps to reproduce

  1. Set up vanilla NextCloud, create user
  2. Configure Joplin to use NextCloud WebDAV as sync target
  3. Sync (i.e. read files from NC and write files to NC)

Expected behavior

Files should be updated on the server and downloaded from it.

Nextcloud Server version

33

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Nginx

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 31 to 32)

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

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cal.example.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "33.0.0.16",
        "overwrite.cli.url": "https:\/\/cal.example.com",
        "forcessl": true,
        "forceSSLforSubdomains": true,
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "theme": "",
        "loglevel": 2,
        "mysql.utf8mb4": true,
        "app_install_overwrite": [
            "maps",
            "files_markdown"
        ],
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "sendmail",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "DE",
        "mysql.uft8mb4": true,
        "maintenance_window_start": 1
    }
}

List of activated Apps

Enabled:
  - brewmemo: 0.6.0
  - bruteforcesettings: 6.0.0-dev.0
  - calendar: 6.2.1
  - cloud_federation_api: 1.17.0
  - contacts: 8.4.0
  - dav: 1.36.0
  - federatedfilesharing: 1.23.0
  - files: 2.5.0
  - files_downloadlimit: 5.1.0-dev.0
  - files_markdown: 2.4.1
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - integration_openstreetmap: 3.0.0
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - maps: 1.6.0
  - nextcloud_announcements: 5.0.0
  - notes: 4.13.0
  - notifications: 6.0.0
  - oauth2: 1.21.0
  - photos: 6.0.0-dev.0
  - privacy: 5.0.0-dev.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - related_resources: 4.0.0-dev.0
  - richdocuments: 10.1.0
  - richdocumentscode: 25.4.902
  - serverinfo: 5.0.0-dev.0
  - settings: 1.16.0
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_nextcloud_notification: 7.0.0
  - twofactor_totp: 15.0.0-dev.0
  - updatenotification: 1.23.0
  - viewer: 6.0.0-dev.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0
Disabled:
  - activity: 6.0.0-dev.0 (installed 2.13.4)
  - admin_audit: 1.23.0
  - app_api: 33.0.0 (installed 32.0.0)
  - circles: 33.0.0 (installed 25.0.0)
  - comments: 1.23.0 (installed 1.10.0)
  - contactsinteraction: 1.14.1 (installed 1.1.0)
  - dashboard: 7.13.0 (installed 7.0.0)
  - encryption: 2.21.0
  - federation: 1.23.0 (installed 1.10.1)
  - files_external: 1.25.1
  - files_pdfviewer: 6.0.0-dev.0 (installed 2.0.1)
  - firstrunwizard: 6.0.0-dev.0 (installed 2.9.0)
  - password_policy: 5.0.0-dev.0 (installed 1.10.1)
  - recommendations: 6.0.0-dev.0 (installed 0.8.0)
  - sharebymail: 1.23.0 (installed 1.10.0)
  - support: 5.0.0 (installed 1.3.0)
  - survey_client: 5.0.0-dev.0 (installed 1.8.0)
  - suspicious_login: 11.0.0-dev.0
  - systemtags: 1.23.0 (installed 1.10.0)
  - text: 7.0.0-dev.3 (installed 3.6.0)
  - user_ldap: 1.24.0
  - user_status: 1.13.0 (installed 1.0.1)
  - weather_status: 1.13.0 (installed 1.0.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"Y1YPonhYLXSvWmVC55J2","level":3,"time":"2026-03-05T10:22:47+00:00","remoteAddr":"123.456.789.0","user":"MyUserName","app":"webdav","method":"DELETE","url":"/remote.php/webdav/joplin-sync/d41e6bda4f134a4b90ec2a966f116dcb.md","scriptName":"/remote.php","message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()","userAgent":"Joplin/1.0","version":"33.0.0.16","exception":{"Exception":"Error","Message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()","Code":0,"Trace":[{"file":"/var/www/cal.example.com/cal-web/apps/maps/lib/Service/TracksService.php","line":145,"function":"deleteByFileId","class":"OCA\\Maps\\Service\\TracksService","type":"->"},{"file":"/var/www/cal.example.com/cal-web/apps/maps/lib/Hooks/FileHooks.php","line":70,"function":"deleteByFile","class":"OCA\\Maps\\Service\\TracksService","type":"->"},{"function":"{closure:OCA\\Maps\\Hooks\\FileHooks::register():62}","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/cal.example.com/cal-web/lib/private/Hooks/EmitterTrait.php","line":89,"function":"call_user_func_array"},{"file":"/var/www/cal.example.com/cal-web/lib/private/Hooks/PublicEmitter.php","line":23,"function":"emit","class":"OC\\Hooks\\BasicEmitter","type":"->"},{"file":"/var/www/cal.example.com/cal-web/lib/private/Files/Node/Root.php","line":117,"function":"emit","class":"OC\\Hooks\\PublicEmitter","type":"->"},{"function":"emit","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/cal.example.com/cal-web/lib/private/Files/Node/LazyFolder.php","line":65,"function":"call_user_func_array"},{"file":"/var/www/cal.example.com/cal-web/lib/private/Files/Node/LazyFolder.php","line":93,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/cal.example.com/cal-web/lib/private/Files/Node/HookConnector.php","line":107,"function":"emit","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/cal.example.com/cal-web/lib/private/legacy/OC_Hook.php","line":85,"function":"delete","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/cal.example.com/cal-web/lib/private/Files/View.php","line":1322,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/cal.example.com/cal-web/lib/private/Files/View.php","line":1194,"function":"runHooks","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cal.example.com/cal-web/lib/private/Files/View.php","line":676,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cal.example.com/cal-web/apps/dav/lib/Connector/Sabre/File.php","line":512,"function":"unlink","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/cal.example.com/cal-web/3rdparty/sabre/dav/lib/DAV/Tree.php","line":197,"function":"delete","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/cal.example.com/cal-web/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":281,"function":"delete","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/cal.example.com/cal-web/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpDelete","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/cal.example.com/cal-web/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/cal.example.com/cal-web/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/cal.example.com/cal-web/apps/dav/appinfo/v1/webdav.php","line":87,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/cal.example.com/cal-web/remote.php","line":151,"args":["/var/www/cal.example.com/cal-web/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/cal.example.com/cal-web/apps/maps/lib/Service/TracksService.php","Line":461,"message":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()","exception":"{\"class\":\"Error\",\"message\":\"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()\",\"code\":0,\"file\":\"/var/www/cal.example.com/cal-web/apps/maps/lib/Service/TracksService.php:461\",\"trace\":\"#0 /var/www/cal.example.com/cal-web/apps/maps/lib/Service/TracksService.php(145): OCA\\Maps\\Service\\TracksService->deleteByFileId()\\n#1 /var/www/cal.example.com/cal-web/apps/maps/lib/Hooks/FileHooks.php(70): OCA\\Maps\\Service\\TracksService->deleteByFile()\\n#2 [internal function]: OCA\\Maps\\Hooks\\FileHooks->{closure:OCA\\Maps\\Hooks\\FileHooks::register():62}()\\n#3 /var/www/cal.example.com/cal-web/lib/private/Hooks/EmitterTrait.php(89): call_user_func_array()\\n#4 /var/www/cal.example.com/cal-web/lib/private/Hooks/PublicEmitter.php(23): OC\\Hooks\\BasicEmitter->emit()\\n#5 /var/www/cal.example.com/cal-web/lib/private/Files/Node/Root.php(117): OC\\Hooks\\PublicEmitter->emit()\\n#6 [internal function]: OC\\Files\\Node\\Root->emit()\\n#7 /var/www/cal.example.com/cal-web/lib/private/Files/Node/LazyFolder.php(65): call_user_func_array()\\n#8 /var/www/cal.example.com/cal-web/lib/private/Files/Node/LazyFolder.php(93): OC\\Files\\Node\\LazyFolder->__call()\\n#9 /var/www/cal.example.com/cal-web/lib/private/Files/Node/HookConnector.php(107): OC\\Files\\Node\\LazyFolder->emit()\\n#10 /var/www/cal.example.com/cal-web/lib/private/legacy/OC_Hook.php(85): OC\\Files\\Node\\HookConnector->delete()\\n#11 /var/www/cal.example.com/cal-web/lib/private/Files/View.php(1322): OC_Hook::emit()\\n#12 /var/www/cal.example.com/cal-web/lib/private/Files/View.php(1194): OC\\Files\\View->runHooks()\\n#13 /var/www/cal.example.com/cal-web/lib/private/Files/View.php(676): OC\\Files\\View->basicOperation()\\n#14 /var/www/cal.example.com/cal-web/apps/dav/lib/Connector/Sabre/File.php(512): OC\\Files\\View->unlink()\\n#15 /var/www/cal.example.com/cal-web/3rdparty/sabre/dav/lib/DAV/Tree.php(197): OCA\\DAV\\Connector\\Sabre\\File->delete()\\n#16 /var/www/cal.example.com/cal-web/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(281): Sabre\\DAV\\Tree->delete()\\n#17 /var/www/cal.example.com/cal-web/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): Sabre\\DAV\\CorePlugin->httpDelete()\\n#18 /var/www/cal.example.com/cal-web/3rdparty/sabre/dav/lib/DAV/Server.php(472): Sabre\\DAV\\Server->emit()\\n#19 /var/www/cal.example.com/cal-web/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\\DAV\\Server->invokeMethod()\\n#20 /var/www/cal.example.com/cal-web/apps/dav/appinfo/v1/webdav.php(87): OCA\\DAV\\Connector\\Sabre\\Server->start()\\n#21 /var/www/cal.example.com/cal-web/remote.php(151): require_once('...')\\n#22 {main}\"}","CustomMessage":"Call to undefined method OC\\DB\\QueryBuilder\\QueryBuilder::execute()"}}

(identical log entries every 10 seconds with different reqIds from my IP since update to NC 33.0.0)

Additional info

I removed my real domain and IP address from trusted domains, rewrite data and log. If necessary, I can provide it for further diagnosis, but I'd rather not disclose it openly. I'm getting enough illicit traffic (including AI crawlers) as it is... NC is installed at the root of the cal subdomain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap33-feedbackbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions