nextcloud / server

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

Uncaught TypeError: OCA.Files_External.StatusManager.getMountPointList is not a function #29424

Closed roni75020 closed 1 year ago

roni75020 commented 2 years ago

How to use GitHub

Steps to reproduce

  1. From GUI, Files application go to a subfolder
  2. Click on the 'Home' icon of the Files Application ( https://nc_url/index.php/apps/files?dir=/ )
  3. Nothing happens, it stays in the current folder instead of going to the root folder.

Expected behaviour

When clicking on the Home icon of the Files Application, change to the root folder

Actual behaviour

Clicking on the Home icon of the Files application do not change to the root folder.

NOTE: Deactivating the application "External storage support" fixes the issue. I think, but not sure the issue appeared soon after migrating from php v7 to v8.

Server configuration

Operating system:

Ubuntu 20.04 LTS | Linux 5.4.0-88-generic x86_64

Web server: Apache: 2.4.41

Database: mysql Ver 15.1 Distrib 10.3.31-MariaDB

PHP version: PHP 8.0.12

Nextcloud version: (see Nextcloud admin page) 22.2.0 ( same thing happens with the 21 and 20 version )

Updated from an older Nextcloud/ownCloud or fresh install: Updated from last version of the line 21.

Where did you install Nextcloud from: Source

Signing status:

Signing status ``` No errors have been found. ```

List of activated apps:

App list ``` Enabled: - accessibility: 1.8.0 - activity: 2.15.0 - admin_audit: 1.12.0 - announcementcenter: 6.0.0 - apporder: 0.13.0 - audioplayer: 3.2.2 - bookmarks: 10.0.2 - bruteforcesettings: 2.2.0 - calendar: 2.3.4 - camerarawpreviews: 0.7.12 - checksum: 1.1.2 - circles: 22.1.1 - cloud_federation_api: 1.5.0 - comments: 1.12.0 - contacts: 4.0.3 - contactsinteraction: 1.3.0 - dashboard: 7.2.0 - dav: 1.19.0 - deck: 1.5.3 - drawio: 1.0.1 - federatedfilesharing: 1.12.0 - federation: 1.12.0 - files: 1.17.0 - files_accesscontrol: 1.12.1 - files_antivirus: 3.2.2 - files_automatedtagging: 1.12.0 - files_downloadactivity: 1.11.1 - files_external: 1.13.0 - files_fulltextsearch: 22.0.1 - files_mindmap: 0.0.25 - files_pdfviewer: 2.3.0 - files_retention: 1.11.1 - files_rightclick: 1.1.0 - files_sharing: 1.14.0 - files_trashbin: 1.12.0 - files_versions: 1.15.0 - files_videoplayer: 1.11.0 - firstrunwizard: 2.11.0 - fulltextsearch: 22.0.1 - fulltextsearch_elasticsearch: 22.0.1 - groupfolders: 10.0.0 - impersonate: 1.9.0 - keeweb: 0.6.6 - logreader: 2.7.0 - lookup_server_connector: 1.10.0 - mail: 1.10.5 - maps: 0.1.9 - metadata: 0.14.0 - nextcloud_announcements: 1.11.0 - notes: 4.1.1 - notifications: 2.10.1 - oauth2: 1.10.0 - password_policy: 1.12.0 - passwords: 2021.10.20 - phonetrack: 0.6.9 - photos: 1.4.0 - privacy: 1.6.0 - provisioning_api: 1.12.0 - quota_warning: 1.11.0 - recommendations: 1.1.0 - richdocuments: 4.2.3 - richdocumentscode: 6.4.1303 - serverinfo: 1.12.0 - settings: 1.4.0 - sharebymail: 1.12.0 - spreed: 12.1.2 - support: 1.5.0 - survey_client: 1.10.0 - systemtags: 1.12.0 - tasks: 0.14.2 - terms_of_service: 1.8.1 - text: 3.3.0 - theming: 1.13.0 - twofactor_backupcodes: 1.11.0 - twofactor_totp: 6.1.0 - twofactor_u2f: 6.2.0 - updatenotification: 1.12.0 - user_ldap: 1.12.0 - user_saml: 4.1.1 - user_status: 1.2.0 - video_converter: 1.0.3 - viewer: 1.6.0 - weather_status: 1.2.0 - workflow_pdf_converter: 1.7.0 - workflow_script: 1.7.0 - workflowengine: 2.4.0 Disabled: - audioplayer_editor - dicomviewer - encryption - end_to_end_encryption - files_fulltextsearch_tesseract - imageconverter - limit_login_to_ip - ocsms - onlyoffice - previewgenerator - social - socialsharing_diaspora - socialsharing_email - socialsharing_facebook - socialsharing_twitter - telephoneprovider ```

Nextcloud configuration:

Config report ``` { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ ***public_hosts***, "10.90.60.17", "[fdda:a8a7:bc67:2::11]", "[***public_ipv6***]" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "version": "22.2.0.2", "dbtype": "mysql", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbtableprefix": "", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "default_language": "en", "default_locale": "en_US", "default_phone_region": "FR", "defaultapp": "dashboard", "knowledgebaseenabled": true, "allow_user_to_change_display_name": true, "remember_login_cookie_lifetime": 1296000, "session_lifetime": 86400, "session_keepalive": true, "auto_logout": false, "auth.bruteforce.protection.enabled": true, "auth.webauthn.enabled": true, "token_auth_enforced": true, "skeletondirectory": "\/var\/www\/nextcloud\/core\/skeleton", "lost_password_link": "disabled", "mail_smtpmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpdebug": false, "mail_smtpauthtype": "LOGIN", "mail_smtpport": "25", "overwrite.cli.url": "https:\/\/nc.orikumi.com", "htaccess.RewriteBase": "\/", "trashbin_retention_obligation": "auto", "versions_retention_obligation": "auto", "updatechecker": false, "updater.server.url": "https:\/\/updates.nextcloud.com\/updater_server\/", "updater.release.channel": "stable", "check_for_working_webdav": true, "check_for_working_wellknown_setup": true, "check_for_working_htaccess": true, "check_data_directory_permissions": true, "config_is_read_only": false, "logtimezone": "Europe\/Paris", "log_type": "owncloud", "logfile": "\/nextcloud\/var\/log\/nextcloud.log", "logdateformet": "F d, Y H:i:s", "loglevel": 1, "syslog_tag": "Nextcloud", "log_query": false, "cron_log": true, "log_rotate_size": true, "appstoreenabled": true, "apps_paths": [ { "path": "\/var\/www\/nextcloud\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/nextcloud\/apps2", "writable": true } ], "appcodechecker": true, "enable_previews": true, "preview_max_x": 4096, "preview_max_y": 4096, "preview_max_scale_factor": 10, "preview_max_filesize_image": 50, "preview_libreoffice_path": "\/usr\/bin\/libreoffice", "preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore --convert-to png --outdir ", "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\HEIC", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown", "OC\\Preview\\Illustrator", "OC\\Preview\\Movie", "OC\\Preview\\MSOffice2003", "OC\\Preview\\MSOffice2007", "OC\\Preview\\MSOfficeDoc", "OC\\Preview\\OpenDocument", "OC\\Preview\\PDF", "OC\\Preview\\Photoshop", "OC\\Preview\\Postscript", "OC\\Preview\\StarOffice", "OC\\Preview\\SVG", "OC\\Preview\\TIFF", "OC\\Preview\\Font", "OC\\Preview\\RTF" ], "ldapIgnoreNamingRules": false, "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory", "maintenance": false, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.distributed": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 1.5 }, "cache_path": "", "mysql.utf8mb4": true, "tempdirectory": "\/nextcloud\/var\/tmp", "blacklisted_files": [ ".htaccess" ], "theme": "", "cipher": "AES-256-CFB", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "forwarded_for_headers": [ "HTTP_X_FORWARDED", "HTTP_X_FORWARDED_FOR" ], "filelocking.enabled": "true", "filelocking.ttl": 3600, "memcache.locking": "\\OC\\Memcache\\Redis", "filelocking.debug": false, "upgrade.disable-web": false, "debug": false, "data-fingerprint": "60f8f4ceab631bdf2a9e6f618f36144d", "singleuser": false, "asset-pipeline.enabled": true, "updater.secret": "***REMOVED SENSITIVE VALUE***" } } ```

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

Are you using encryption: no

Are you using an external user-backend, if yes which one: ActiveDirectory

LDAP configuration (delete this part if not used)

LDAP config ``` With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your Nextcloud installation folder Without access to your command line download the data/owncloud.db to your local computer or access your SQL server remotely and run the select query: SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap'; Eventually replace sensitive data as the name/IP-address of your LDAP server or groups. ```

Client configuration

Browser: Chrome Operating system: All ( Mac OS, Linux, Win10 )

Logs

Web server error log

Web server error log ``` No pertinent information ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` No pertinent information ```

Browser log

Browser log ``` a) The javascript console log xhr.js:177 GET https:///ocs/v2.php/apps/text/workspace?path=%2FDocuments 404 4app.js?v=66ed1500-212:85 Uncaught TypeError: OCA.Files_External.StatusManager.getMountPointList is not a function at HTMLDivElement. (app.js?v=66ed1500-212:85) at HTMLDivElement.dispatch (jquery.js:5183) at HTMLDivElement.g.handle (jquery.js:4991) at Object.trigger (jquery.js:8249) at HTMLDivElement. (jquery.js:8327) at Function.each (jquery.js:354) at e.fn.init.each (jquery.js:189) at e.fn.init.trigger (jquery.js:8326) at FileList._setCurrentDir (merged-index.js?v=66ed1500-212:6094) at FileList.changeDirectory (merged-index.js?v=66ed1500-212:6026) b) The network log c) ... ```
szaimen commented 1 year ago

Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!

My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!

If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+

roni75020 commented 1 year ago

Hi,

Reactivated the files_external app and checked on my current version 25.0.3. The issue is not present anymore.

Thank you!

szaimen commented 1 year ago

Thanks for verifying!