Skip to content

[Bug]: Moving files via drag & drop broken in NC33 — ReferenceError: fileTree is not defined #59664

@LostinSpacetime

Description

@LostinSpacetime

⚠️ This issue respects the following points: ⚠️

Bug description

Since upgrading to Nextcloud 33, moving files via drag & drop within the Files app is broken. The drag & drop animation works correctly, and the drop event registers, but the file is never moved. No error is shown in the UI or protocol. The root cause appears to be a JavaScript ReferenceError: fileTree is not defined thrown in FileEntryMixin.ts:460 during the onDrop handler, which silently aborts the move operation.

Steps to reproduce

  1. Open the Files app in the web interface
  2. Navigate to any folder containing files
  3. Drag a file and drop it onto a folder in the same directory
  4. The file is not moved without any errors

Expected behavior

The file is moved into the target folder.

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

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

None

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": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.schloss-schule.wien",
            "localhost",
            "116.202.135.22"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "33.0.2.2",
        "overwrite.cli.url": "https:\/\/cloud.schloss-schule.wien",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "simpleSignUpLink.shown": false,
        "maintenance": false,
        "maintenance_window_start": 1,
        "mysql.utf8mb4": true,
        "default_language": "de_DE",
        "default_locale": "de_AT",
        "default_phone_region": "AT",
        "app_install_overwrite": [
            "auto_mail_accounts",
            "whiteboard",
            "discoursesso",
            "deck",
            "side_menu",
            "onlyoffice",
            "richdocumentscode",
            "richdocuments",
            "forms",
            "qownnotesapi",
            "appointments"
        ],
        "theme": "",
        "loglevel": 0,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "updater.release.channel": "stable",
        "ldapIgnoreNamingRules": false,
        "overwritehost": "cloud.schloss-schule.wien",
        "auth.bruteforce.protection.enabled": true,
        "app.mail.verify-tls-peer": false,
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false,
        "mail_smtpauth": true,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "allow_local_remote_servers": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\Movie",
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\MP4",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\PDF"
        ],
        "session_keepalive": true,
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".part"
        ],
        "group_based_user_listing": true,
        "defaultapp": "",
        "mail_smtpport": "465"
    }

List of activated Apps

Enabled:
  - activity: 6.0.0
  - admin_audit: 1.23.0
  - app_api: 33.0.0
  - bruteforcesettings: 6.0.0
  - calendar: 6.2.2
  - cloud_federation_api: 1.17.0
  - comments: 1.23.0
  - contacts: 8.4.4
  - contactsinteraction: 1.14.1
  - dav: 1.36.0
  - deck: 1.17.0
  - drawio: 4.2.3
  - drop_account: 3.0.0
  - external: 8.0.0
  - federatedfilesharing: 1.23.0
  - files: 2.5.0
  - files_downloadlimit: 5.1.0
  - files_fulltextsearch: 33.0.0
  - files_linkeditor: 1.1.24
  - files_pdfviewer: 6.0.0
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - firstrunwizard: 6.0.0
  - forms: 5.2.7
  - fulltextsearch: 33.0.0
  - fulltextsearch_elasticsearch: 33.0.0
  - groupfolders: 21.0.7
  - guests: 4.6.0
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - nextcloud_announcements: 5.0.0
  - notes: 4.13.1
  - notifications: 6.0.0
  - notify_push: 1.3.1
  - oauth2: 1.21.0
  - password_policy: 5.0.0
  - photos: 6.0.0
  - polls: 8.6.3
  - privacy: 5.0.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - qownnotesapi: 26.2.2
  - quota_warning: 1.23.0
  - recommendations: 6.0.0
  - related_resources: 4.0.0
  - richdocuments: 10.1.2
  - serverinfo: 5.0.0
  - settings: 1.16.0
  - sharebymail: 1.23.0
  - side_menu: 5.3.0
  - support: 5.0.0
  - survey_client: 5.0.0
  - systemtags: 1.23.0
  - tasks: 0.17.1
  - text: 7.0.0
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0
  - updatenotification: 1.23.0
  - user_status: 1.13.0
  - viewer: 6.0.0
  - weather_status: 1.13.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0
Disabled:
  - appointments: 2.7.1 (installed 2.7.1)
  - audioplayer: 3.8.0 (installed 3.8.0)
  - circles: 33.0.0 (installed 33.0.0)
  - collectives: 4.2.0 (installed 4.2.0)
  - dashboard: 7.13.0 (installed 7.6.0)
  - data_request: 5.0.0 (installed 5.0.0)
  - encryption: 2.21.0 (installed 2.7.0)
  - federation: 1.23.0 (installed 1.22.0)
  - files_external: 1.25.1
  - group_everyone: 0.1.19 (installed 0.1.19)
  - htmlviewer: 33.0.0 (installed 33.0.0)
  - mail: 5.7.7 (installed 5.7.7)
  - oidc_login: 3.3.1 (installed 3.3.1)
  - onlyoffice: 10.0.0 (installed 10.0.0)
  - richdocumentscode: 25.4.904 (installed 25.4.904)
  - spreed: 23.0.3 (installed 23.0.3)
  - suspicious_login: 11.0.0 (installed 8.0.0)
  - tables: 2.0.1 (installed 2.0.1)
  - terms_of_service: 4.6.1 (installed 4.6.1)
  - testing: 1.23.0
  - text_templates: 1.4.0 (installed 1.4.0)
  - twofactor_nextcloud_notification: 7.0.0
  - user_ldap: 1.24.0 (installed 1.12.1)
  - whiteboard: 1.5.7 (installed 1.5.7)
  - workflow_pdf_converter: 4.0.0 (installed 4.0.0)

Nextcloud Signing status

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
	- INVALID_HASH
		- core/js/mimetypelist.js
	- EXTRA_FILE
		- core/img/filetypes/dwb.svg
		- core/img/filetypes/drawio.svg
- guests
	- INVALID_HASH
		- lib/Hooks.php

Raw output
==========
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [core/js/mimetypelist.js] => Array
                        (
                            [expected] => cb945c6402e12d9e7d42d0359acf95a6e9a9b0c1f3bd8528f598a7fb1694e5ae34c80cf44ef6c8901eac1bfdd152de3315fc7eac007efee0f33f09ed3e518b6a
                            [current] => 09779c15c6ca51e1dd07931ef2708756cbdc9a9adb41cd6a12eb177f57e005652e1ed3e1df18d46f80a4ad30637a6075e7a9cc11f34b44aeb66b3631b8ba1840
                        )

                )

            [EXTRA_FILE] => Array
                (
                    [core/img/filetypes/dwb.svg] => Array
                        (
                            [expected] => 
                            [current] => 43731dd5f17a048112ea5109b40b02ec019b3ee2324385a0f448e3bd2264cb13dc160ab018d893f92f8e2f168fd09009b51578c8c6b97a02a1617c67ac087701
                        )

                    [core/img/filetypes/drawio.svg] => Array
                        (
                            [expected] => 
                            [current] => 92e0974cf869bf8ab969c3442dc2b80d55fde36441d22924db74916a06b407520aa2a9dc39336f9157195ebede697ffac0e639360879255ab91932d406e1897d
                        )

                )

        )

    [guests] => Array
        (
            [INVALID_HASH] => Array
                (
                    [lib/Hooks.php] => Array
                        (
                            [expected] => 8b35dba0ebc7113fd206f6dbbd2ba98f75a2aef30ff8351293dcf6684057aa500fe867f23764eedae732edcf94fbe2c7e4d67dce47f6418479f38a6f7d8bc19c
                            [current] => 5ca85c8adee04209ca8c5b5cf46e149b6976fc69950e6d82999017e6b13873b7e94a5b782331ee111f02ff7c9648a019cd81c3a7268e63e27ceb55eb3a4d8838
                        )

                )

        )

)

Nextcloud Logs

There is no relevant entry in the logfile.

Additional info

  • The issue is browser-independent (confirmed on Firefox and Chromium-based browsers)
  • Moving files via the three-dot menu → "Move or copy" still works as expected
  • This is a regression introduced with the upgrade to Nextcloud 33
  • ReferenceError: fileTree is not defined
    onDrop FileEntryMixin.ts:460
    VueJS 3
    vue.runtime.esm.js:3065:17
    VueJS 7

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No fields configured for Bug.

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions