nextcloud / server

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

External Storage: Local: filename with "/" character in name won't work #24284

Closed Dinsmoor closed 3 years ago

Dinsmoor commented 3 years ago

How to use GitHub

Steps to reproduce

  1. Add external local storage, ex named mnt/media (anything with a "/") and give access to a user
  2. Log in as user, try and fail to access that folder.

Expected behaviour

Nextcloud handles the character gracefully, either telling you it's an invalid character to use in a name or just letting you do it anyway.

Actual behaviour

Does not show up in "Files" app root. Shows up in "External Storages" on the left sidebar, but clicking it does nothing.

Server configuration

Operating system: Debian 10 Web server: Haproxy Frontend, Apache Backend in a snap Database: whatever's in the snap PHP version: whatever's in the snap Nextcloud version: (see Nextcloud admin page) 20.0.1 Updated from an older Nextcloud/ownCloud or fresh install: Snap install, updated regularly Where did you install Nextcloud from: nextcloud snap 20.0.1snap1 rev 24051 Signing status:

Signing status ``` No errors ```

List of activated apps:

App list ``` Enabled: - accessibility: 1.6.0 - calendar: 2.1.2 - cloud_federation_api: 1.3.0 - comments: 1.10.0 - contacts: 3.4.1 - contactsinteraction: 1.1.0 - dashboard: 7.0.0 - dav: 1.16.0 - duplicatefinder: 0.0.4 - federatedfilesharing: 1.10.1 - files: 1.15.0 - files_external: 1.11.1 - files_pdfviewer: 2.0.1 - files_rightclick: 0.17.0 - files_sharing: 1.12.0 - files_trashbin: 1.10.1 - files_versions: 1.13.0 - files_videoplayer: 1.9.0 - firstrunwizard: 2.9.0 - forms: 2.0.4 - impersonate: 1.7.0 - logreader: 2.5.0 - lookup_server_connector: 1.8.0 - nextcloud_announcements: 1.9.0 - notifications: 2.8.0 - oauth2: 1.8.0 - password_policy: 1.10.1 - photos: 1.2.0 - privacy: 1.4.0 - provisioning_api: 1.10.0 - recommendations: 0.8.0 - settings: 1.2.0 - sharebymail: 1.10.0 - spreed: 10.0.1 - survey_client: 1.8.0 - text: 3.1.0 - twofactor_backupcodes: 1.9.0 - user_status: 1.0.0 - viewer: 1.4.0 - weather_status: 1.0.0 - workflowengine: 2.2.0 ```

Nextcloud configuration:

Config report ``` { "system": { "apps_paths": [ { "path": "\/snap\/nextcloud\/current\/htdocs\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps", "url": "\/extra-apps", "writable": true } ], "supportedDatabases": [ "mysql" ], "memcache.locking": "\\OC\\Memcache\\Redis", "memcache.local": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0 }, "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "dinsmoor.local", "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "20.0.1.1", "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "maintenance": false, "loglevel": 0, "theme": "", "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "app_install_overwrite": [ "keeporsweep" ] } } ```

Are you using external storage, if yes which one: local/smb/sftp/... Yes, Local. Are you using encryption: yes/no No. Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... No.

Client configuration

Browser: MS Edge (Chromium branch) Operating system: Windows 10

Logs

Web server error log

Web server error log ``` I do not know how to access the apache webserver log built into the snap. I started using snaps because I was tired of micro-managing my nextcloud installation whenever it broke every few updates. ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Nothing in the log at all during the period I tried to add the storage with that character. ```

Browser log

Browser log ``` Irrelevant to this issue. ```
szaimen commented 3 years ago

The character / is actually a valid name and makes the folder the root folder of selected users.